Simple description of ASP, ASP,. aspx,. ascx,. ashx

Source: Internet
Author: User

ASP is the abbreviation for Dynamic Server Pages (Active server Page). [1] is a Microsoft company developed to replace the CGI script application, it can interact with the database and other programs, is a simple, convenient programming tools. The ASP Web page file format is. asp. It is often used in various dynamic websites.

ASP is by Microsoft in · The NETFramework framework provides a class library for developing WEB applications, encapsulated in System.Web.dll files, revealing system.web namespaces, and providing ASP. NET Web page processing, expansion, and application and communication processing of HTTP channels. and the WebService infrastructure. Asp. NET is the successor of ASP technology, but its development is much stronger than ASP technology!

. aspx file Microsoft is running on the server side of the Dynamic Web page file, through the execution of IIS parsing can get dynamic page, is Microsoft introduced a new network programming method, rather than the simple upgrade of ASP, because its programming method and ASP is very different, he is on the server side by the server compiled program code execution .

ASP with the aspx the Difference

. asp is a ASP the file suffix name

. aspx is a ASP the file suffix name

to be blunt, this kind of file is a Dynamic Web page. ~

ASP also called asp+ is a design language for dynamic network programming.

The so-called dynamic network such as BBS message Board chat room and so on "

can be used asp,php,jsp.net to write

So, what did you mention ? ASP is that ASP the predecessor of the ~~~

If you're a beginner , it's recommended that you learn asp . He supports writing in many languages like Java C # vb.net is a strong feature

Efficiency ratio ASP High, Visual Studio.NET support writing, clear program structure , easy to develop (mainly because his control is powerful) security is also high (his program must be running on the server side)

. ascx is an ASP. NET user control that is developed as a Web page that encapsulates specific functionality and behavior, both of which are used on various pages of a Web application. A user control contains a combination of HTML, code, and other Web or user controls and is saved on the Web server in its own file format with the extension *.ascx. The default configuration in ASP. NET does not allow Web clients to access these files through URLs, but other pages of this site can integrate the features contained in these files.

. ashxfiles are mainly used to writeWeb Handlerthe. Use. ashxAllows you to focus on programming without having to worry aboutWebtechnology. We are familiar with. aspxis to doHTMLthe control tree is parsed,. aspxcontains all theHTMLis actually a class, all theHTMLare members of the class, the process is. ashxis not needed. ashxmust containisreusableProperty (This property represents whether it is reusable, typicallytrue), and if you want toashxUse for FilesSessionmust implementIRequiresSessionStateInterface.

         aspxto separate the front and back display from the processing logic,so I made two files.,actually,at the time of final compilation, the ASPXand theCSwill be compiled into the same class..This is the middle of the designHTMLof some logical processing;ashxdifferent,It's just a simple yesWeb httpthe request returns the result you want to return directly.thanaspxless processing.HTMLthe process (butashxcan also handleHTMLSome of the logic, just usually not used in this way). Theoreticallyashxthanaspxbe quick.

         or in the same old article, we know several ways of data transmission, in factashxcan be implemented (modifyashxin the filecontext. Response.ContentType), no longer repeat here. ashxideal for generating dynamic pictures, generating dynamic text(Plain Text,JSON,XML,JavaScriptwait a minute .)and so on. . ashxthe file has a drawback: it is cumbersome to handle postback events for controls. Processing the postback of the data usually requires some. aspxpage, you only have to handle these functions manually (you might as well build aaspxfile to process). Therefore, the general use. ashxexport some items that do not require postback processing.

Summary :

aspx-->p ( Page )

ascx-->c ( Control )

ashx-->h ( HttpHandler )

        when the browser accessesWebserver, what we finally received is stillHTMLtext. The browser interprets these labels through the rendering engine, showing the visible effect on the screen. andASPbut it's a platform technology that we use to"disguised"explainHTML, it is to improve productivity, its technical terminology is more, in essence, orHTMLWhat's in the category (if you're not fully leveraging those dynamic page technologiesHTMLand browsers (of course includingJS) technology to achieve dynamic page effects, you'll find that the effect has a considerable amount of code..so sayWebthe bottom of the development is a bunch ofHTMLlabel, whether it'sASPor isJSPIt's all right .HTMLsome way of packaging that isHTMLthe product.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Simple description of ASP, ASP,. aspx,. ascx,. ashx

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.