Ascx:
Ascx is a Web user control (usercontrol), which is generally used for reuse. It cannot be accessed directly and can only be inserted into the ASPX page for rendering. the header file <% control... %> Declared as a control file. The user control inherits from system. Web. UI. usercontrol.
Aspx:
Aspx is a page directly accessed by a browser. Is a text file. You can open it in any text editor.
Ashx:
Ashx is a file type used to process httphandler. It is used to process custom HTTP requests. You can define the HTTP request processing method for ashx when running in Web. config,
<Add verb = "*" Path = "*. ashx" type = "system. Web. UI. simplehandlerfactory" Validate = "false"/>
In this way, we can use simplehandlerfactory to process the HTTP request of ashx. To access the session status in this file, we need to display the implementation of an interface ireadonlysessionstate.
This file is similar to An ASPX file, which can be used to call the httphandler class, thus eliminating the need for normal ASPX page control parsing and page processing, this file is especially suitable for generating dynamic images and dynamic text.
Asmx:
ASMs is a Web service file. asmx. CS contains the relevant code, which belongs to the B/S form. It is accessed via HTTP via soap and returned via XML. It can return the basic type and public result type. C/s results are often used.
Asp.net uses the asmx file to Support Web Services.