No HTML Markup Visible of WebGrid asynchronously loaded using jQuery and Ajax - ASP.Net MVC

StackOverflow https://stackoverflow.com/questions/21402825

سؤال

I am successfully using jQuery and Ajax on my MVC app to asynchronously load a WebGrid based on a selected item of a DropDownList. I can see the WebGrid and its contents on the view. However, if I then attempt to look at Page Source (to see the HTML markup of the WebGrid), the bit inside the div tags for the WebGrid is empty. So I have:

<div id="gridContent">
   //completely empty
</div>

Why is this empty? The WebGrid is perfectly visible. Many thanks

هل كانت مفيدة؟

المحلول

Use "Inspect Element" command instated of "View Page Source"

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top