Вопрос

I need to render a simple HTML page as partial within this div.It is a simple HTML5 application, not of MVC architecture hence Html.RenderPartial is not working.Any help??

<div id= "this_div_will_contain_partial">
</div>
Это было полезно?

Решение

Use jquery's load:

<script>
    $(function(){
        $('#this_div_will_contain_partial').load('http://www.urpartialurl.com');
    });
</script>

I have noticed that you haven't included javascript tag but this is the only option to achieve this. Also the page you are trying to access needs to be on the same domain.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top