Reputation: 27394
Is there a way in which I can construct a MVC page such that, if required, I can pull the contents of it without the entire HTML frame. I.e. I want to be able to, if required, pull just the contents (for AJAX Paging) without the refreshing the entire page, but I want that to be possible too
@{
ViewBag.Title = "ViewDevice";
}
<h2>ViewDevice</h2>
Upvotes: 1
Views: 11224
Reputation: 112
check it out: https://github.com/kibiluzbad/Ifa
sample online demo: ifademo.apphb.com/
hope it helps
Upvotes: 0
Reputation: 2590
You can use partial view to implement reusable part of a view and render it in any view you want like this @Html.Partial("_ViewDevice")
.
For more information on how to create a partial view see here and here.
Upvotes: 3
Reputation: 9298
Here is a great tutorial thats easy and quick:
http://www.joe-stevens.com/2011/05/30/asp-net-mvc-simple-server-side-ajax-paging-using-jquery/
Upvotes: 2