質問

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