2

何时使用 MVC View Page 和 MVC View Content Page?它们之间有什么区别?

4

2 回答 2

4

**The MVC View Page is for creating a page, the MVC VewP Content Page is used when you want to create a page and specify a Master Page with it.

It's the same as ASP.NET Webforms Web Form and Web Content Form.

ViewPage and ViewContentPage are the same thing. The difference is that ViewContentPage expects to be the content of a master page and when you select a ViewContentPage it prompts you to select a master file.

The end result is that a page that derives from the class page is created and in the instance of a regular ViewPage the html in the page starts with an Html tag and in the case of a ViewContentPage the html starts with an asp:Content tag**

于 2013-03-14T07:19:20.483 回答
1

MVC View Page 用于创建页面,当您要创建页面并使用它指定 Master Page 时使用 MVC View Content Page。

于 2013-03-14T07:22:53.137 回答