Why no designer.cs for ASP.NET Website?

后端 未结 1 1544
长情又很酷
长情又很酷 2021-01-19 14:48

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

相关标签:
1条回答
  • 2021-01-19 15:27

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

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

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

    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:

    ASP.NET Web Site or ASP.NET Web Application?

    aspx.designer.cs how does it work?

    0 讨论(0)
提交回复
热议问题