Microsoft originally only needs to be slightly improved on the web application platform ASP, providing a more functional server-side scripting programming language or page compilation function to maintain or even increase the popularity of ASP. In fact, ASP.NET provides these two features - but it also provides more things. Simply put, ASP.NET is a revolution. In this article, I will discuss the improvement of ASP.NET for web programming.
In the ASP model, a page is defined via HTML and then expanded by embedded scripts. In ASP.NET, the difference is that a page is a class that generates HTML. This model is called WebForm. If this name lets you think of the VB6's form control or .NET WinForms, then you touched it. For WebForms, the web server control is placed on a page. When this page is accessed, these controls automatically implement them in HTML. The complex process between the browser and the server is transparent to the programmer, and the server is automatically completed, and the event is processed, just like WinForms.
Welcome page
Let us start creating an example called Greter (welcome) and look at how it works. I like to unclear them when I learn a new technology and then make a whole piece. Greter just asks users to enter a name and issue a greeting message, but it demonstrates several main features of ASP.NET.
Greter page defines in two files: Greter.aspx, in list A, and Greter.aspx.cs, in list B. The .aspx file defines the UI (user interface) of the page, and the C # file (you can also use Visual Basic.net or JScript.net) to implement this page logic in the GreterLogic class. The @PAGE instruction of the first row of Greter.aspx files will be bind UI to the program logic by inheritance. The classname property in this instruction specifies the name of the UI class as CreteRUI. The inherits attribute specifies that Greeterui is inherited from Greterlogic.
Web server-side control
Several web server-side controls have been stated in the