同一页面中的多个视图MVC ASP.NET
问题描述:
我想在ASP.NET MVC技术的同一页面上显示不同的视图。如何才能实现。
I want to display different Views on the same page in ASP.NET MVC technology . How can it be acheived.
我有来自2个不同表的数据,为此我有2个不同的视图用于显示。如何在一个页面上显示这两个视图。
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.
MVC中的视图中是否存在视图的概念?或者是否有一些用于制作可以封装多个视图的主视图的规定。 ?
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)
- http://www.dotnet-tricks.com/Tutorial/mvc/2IKW160912-Partial-View-in-Asp.net-MVC3-Razor.html
- http://www.codeproject.com/Articles/351867/Basics-of- ASP-NET-MVC3-Part-II
- http://www.c-sharpcorner.com/UploadFile/aravindbenator/mvc-3-razor-and-partial-view/
- http://www.dotnet-tricks.com/Tutorial/mvc/2IKW160912-Partial-View-in-Asp.net-MVC3-Razor.html
- http://www.codeproject.com/Articles/351867/Basics-of-ASP-NET-MVC3-Part-II
- http://www.c-sharpcorner.com/UploadFile/aravindbenator/mvc-3-razor-and-partial-view/