Functions of files suffixed with ascx aspx ashx asmx

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.