如何判断我的网站是运行ASP.NET MVC还是Web窗体?

时间:2022-01-24 04:15:12

I am a non-coder that needs to get some information to my developer. One of the questions was whether we were running ASP.NET MVC or Web Forms? What is the best way I can tell this. If you want to take a look, the site is at http://sokanu.com (just a splash page)

我是一名非编码员,需要向我的开发人员提供一些信息。其中一个问题是我们是运行ASP.NET MVC还是Web Forms?我能说出这个最好的方法是什么。如果你想看看,该网站是在http://sokanu.com(只是一个启动页面)

Thanks guys

多谢你们

4 个解决方案

#1


8  

It's running WebForms.

它正在运行WebForms。

You can tell by the Viewstate in the page source.

您可以通过页面源中的Viewstate来判断。

#2


7  

Check the HTTP response headers. ASP.NET MVC 1.0 generated pages will have:

检查HTTP响应标头。 ASP.NET MVC 1.0生成的页面将具有:

X-Aspnetmvc-Version:1.0

#3


2  

As SLaks says, you can tell it is Web Forms because the page has a __VIEWSTATE field. Because it is a splash page, the view-state is nearly empty and the page does not need to be Web Forms at all. You need to look at the rest of the site to ascertain how much Web Forms and code is there. You can definitely mix Web Forms and MVC.

正如SLaks所说,你可以告诉它是Web窗体,因为该页面有一个__VIEWSTATE字段。因为它是一个启动页面,所以视图状态几乎为空,页面根本不需要是Web窗体。您需要查看站点的其余部分以确定Web表单和代码的数量。你绝对可以混合使用Web Forms和MVC。

#4


0  

Also, (although not concrete), typically with a WebForms application, you're pages end with .aspx extensions, and with MVC you benefit from pretty urls.

此外,(虽然不具体),通常使用WebForms应用程序,您的页面以.aspx扩展名结尾,而MVC则受益于漂亮的URL。

#1


8  

It's running WebForms.

它正在运行WebForms。

You can tell by the Viewstate in the page source.

您可以通过页面源中的Viewstate来判断。

#2


7  

Check the HTTP response headers. ASP.NET MVC 1.0 generated pages will have:

检查HTTP响应标头。 ASP.NET MVC 1.0生成的页面将具有:

X-Aspnetmvc-Version:1.0

#3


2  

As SLaks says, you can tell it is Web Forms because the page has a __VIEWSTATE field. Because it is a splash page, the view-state is nearly empty and the page does not need to be Web Forms at all. You need to look at the rest of the site to ascertain how much Web Forms and code is there. You can definitely mix Web Forms and MVC.

正如SLaks所说,你可以告诉它是Web窗体,因为该页面有一个__VIEWSTATE字段。因为它是一个启动页面,所以视图状态几乎为空,页面根本不需要是Web窗体。您需要查看站点的其余部分以确定Web表单和代码的数量。你绝对可以混合使用Web Forms和MVC。

#4


0  

Also, (although not concrete), typically with a WebForms application, you're pages end with .aspx extensions, and with MVC you benefit from pretty urls.

此外,(虽然不具体),通常使用WebForms应用程序,您的页面以.aspx扩展名结尾,而MVC则受益于漂亮的URL。