同一页面中的多个视图MVC ASP.NET [英] Multiple Views in the same page MVC ASP.NET
本文介绍了同一页面中的多个视图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/
这篇关于同一页面中的多个视图MVC ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文