ASP.Net 中的剃刀内容页面和常规内容页面有何区别
What the difference between a razor content page and a regular content page in ASP.Net
我是 ASP.NET 的新手,很抱歉,如果这是一个显而易见的问题。我做了 google 但我还是很困惑。
所以我在我的 ASP.Net 项目中创建了一个母版页,然后转到 visual studio 顶部的网站按钮打开下拉菜单并单击“添加新项目” .
我去添加一个内容页面,唯一显示的内容页面是“内容页面(razor)”。这将添加一个带有“.vbhtml”文件扩展名的页面。我正在尝试添加带有附加 vb 页面的“.aspx”文件,但它没有出现在列表中。
如果我右键单击母版页,我可以选择添加此类内容页面,但会自动将其命名为“默认”。所以这是我的问题。
Is there a way to add the regular content page while having the ability to name it before it is created?
What's the difference between a razor content page and an asp content page?
ASP.NET
可以是Webform
- 事件驱动编码
- 客户端是aspx
- 包含
asp:controls
、html...
MVC (MVC 3, 4, 5, 6)
- 模型 - 视图 - 控制器编码
- 客户端是cshtml或vbhtml
- 包含
razor
、html...
如果您想创建一个 ASP.NET 网络表单,请不要选择 MVC,您的项目看起来会不一样,并且编码方式也不一样。
我是 ASP.NET 的新手,很抱歉,如果这是一个显而易见的问题。我做了 google 但我还是很困惑。
所以我在我的 ASP.Net 项目中创建了一个母版页,然后转到 visual studio 顶部的网站按钮打开下拉菜单并单击“添加新项目” .
我去添加一个内容页面,唯一显示的内容页面是“内容页面(razor)”。这将添加一个带有“.vbhtml”文件扩展名的页面。我正在尝试添加带有附加 vb 页面的“.aspx”文件,但它没有出现在列表中。
如果我右键单击母版页,我可以选择添加此类内容页面,但会自动将其命名为“默认”。所以这是我的问题。
Is there a way to add the regular content page while having the ability to name it before it is created?
What's the difference between a razor content page and an asp content page?
ASP.NET
可以是Webform
- 事件驱动编码
- 客户端是aspx
- 包含
asp:controls
、html...
MVC (MVC 3, 4, 5, 6)
- 模型 - 视图 - 控制器编码
- 客户端是cshtml或vbhtml
- 包含
razor
、html...
如果您想创建一个 ASP.NET 网络表单,请不要选择 MVC,您的项目看起来会不一样,并且编码方式也不一样。