I want to display different Views on the same page in ASP.NET MVC technology . How can it be acheived.
I have data coming in from 2 different Tables and for that i have 2 different Views for display. How can I display both these views on one single page.
Is there a concept of a View within a view in MVC ? Or is there some provision for making a master view which can encapsualte multiple views. ?
These link's will help you (first gain knowledge of Partial view)
ASP.NET MVC supports the ability to define "partial view" templates that can be used to encapsulate view rendering logic for a sub-portion of a page. "Partials" provide a useful way to define view rendering logic once, and then re-use it in multiple places across an application.
Refer:
Re-use UI Using Master Pages and Partials
Creating Partial View
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With