为什么没有designer.cs的ASP.NET网站? [英] Why no designer.cs for ASP.NET Website?

查看:590
本文介绍了为什么没有designer.cs的ASP.NET网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们建立在Visual Studio中的ASP.NET Web应用程序,我们可以看到,每一个.aspx文件都会有一个相关的自动生成.aspx.designer.cs文件。但是,如果一个ASP.NET网站的每个aspx文件只有一个codebehind .aspx.cs只有文件。

If we create an ASP.NET Web Application in Visual Studio we can see that each and every .aspx file will have an associated auto generated .aspx.designer.cs file. But in case of an ASP.NET WebSite each aspx file has only a codebehind .aspx.cs file only.

我的问题是为什么ASP.NET网站没有自动生成的设计cs文件?

什么是汽车的目的情况下,Web应用程序项目中生成的设计文件?(我相信没有人动它设计文件)

What is the purpose of the auto generated designer file in case of the Web Application project? (I believe no one is touching that designer file)

推荐答案

为什么ASP.NET网站没有自动生成的设计cs文件?

why ASP.NET Website does not have an auto generated designer .cs file?

由于code编译在VisualStudio中的飞行。每个页面都被编译成一个单独的DLL。

Because the code is compiled by the VisualStudio on the fly. Each page is compiled into a separate dll.

什么是自动生成的设计文件的情况下,Web应用程序项目的目的是什么?

What is the purpose of the auto generated designer file in case of the Web Application project?

设计者文件被创建为它的工作原理ASPX之间aspx.cs文件的桥梁,这也提供了IntelliSense支持分部类。没有人触动设计师文件,因为Visual Studio会自动更新它时,任何更改到aspx文件。

The designer file is created as a partial class which works as a bridge between aspx and aspx.cs file, which also provides IntelliSense support. No one touches the designer file because visual studio updated it automatically when any changes are made to the aspx file.

下面是引用这将为您提供更多信息:

Below are references which will provide you more information:

<一个href="http://stackoverflow.com/questions/398037/asp-net-web-site-or-asp-net-web-application?rq=1">ASP.NET网站或ASP.NET Web应用程序?

aspx.designer.cs它是如何工作的?

这篇关于为什么没有designer.cs的ASP.NET网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆