Search code examples
c#asp.net.netweb-applicationsashx

In a .NET web-application, what is the difference between the following?


I'm mainly trying to understand this. What is the purpose for all of these classes with similar names in a .NET application ?

Also, in which of these will I see more implementation-details?. I assume the .ASPX one is the actual web site?

enter image description here

Thanks!


Solution

  • The .aspx file contains the markup of the page, i.e. HTML code with server tags intermixed.

    The .aspx.cs file is the code behind file, that contains the C# code for the page class.

    The .aspx.designer.cs file contains the automatically generated C# code that declares the controls in the markup file as properties in the page class, so that you can easily access them.