Atitit. componentized event-based programming model-Server Control (1) --------- relationship between server control and label
1. The server control is a tag that can be understood by the server. There are three types of server controls: 1
1.1. html Server Control-traditional HTML Tag 1
1.2. Web Server Control-new ASP. NET label 1
1.3. Validation Server Control-used for input verification 1
2. html Server Control 1
3.-Web Server Control 2
4. Standard server controls can be divided into the following six types: 2
4.1. (1) standard controls: They mainly refer to traditional web form controls, such as Textbox, button, and panel controls. They have a set of standardized attributes, events, and methods, making development easier. 2
4.2. (2) Data Control: This type of control can be subdivided into two types: Data Source Control and Data Binding control. 3
4.2.1. (3) verification controls: 3
4.3. (4) site navigation controls: 3
4.4. (5) webparts control: 3
4.5. (6) logon control: 3
1. The server control is a tag that can be understood by the server. There are three types of server controls: 1.1. html Server Control-traditional HTML Tag 1.2. Web Server Control-new ASP. NET tag 1.3. Validation Server Control-for input verification
Author: old wow's paw attilax iron, email: [email protected]
Reprinted please indicate Source: http://blog.csdn.net/attilax
2. html server controls
The HTML server control is an HTML Tag that is understandable to the server.
HTML elements are processed as text.
(1) HTML server controls
The HTML Server Control is derived from the namespace system. Web. UI. htmlcontrols. They are converted from common HTML controls (controls defined in the HTML language, such as buttons and input). The output is basically the same as that of common HTML controls. By default, it is difficult for the server to control common HTML controls on Web pages. However, by converting common HTML controls into HTML server controls, developers can easily control programming.
3.-web server controls
Web server controls are special labels that are understandable to servers.
Similar to HTML server controls, web server controls are also created on the server. They also need properties for them to take effect. However, web server controls do not need to map any existing HTML elements, which represent more complex elements.
ASP. NET standard server controls are defined in the namespace system. Web. UI. webcontrols. The so-called "standard" means that such server controls are embedded in the ASP. NET 2.0 Framework and are pre-defined. These controls are not mapped to HTML server controls one by one. They have richer functions and are more abstract than HTML server controls.
4. Standard server controls can be divided into the following six types:
4.1. (1) standard controls: They mainly refer to traditional web form controls, such as Textbox, button, and panel controls. They have a set of standardized attributes, events, and methods, making development easier. 4.2. (2) Data Control: This type of control can be subdivided into two types: Data Source Control and Data Binding control.
The data source control mainly implements data source connection, SQL statement/stored procedure execution, and return dataset combination. Including sqldatasource, accessdatasource, xmldatasource, sitemapdatasource, and objectdatasource. Data Binding controls include repeater, datalist, gridview, detailsview, and formview. These controls are used to display data, provide editing, deletion, and other user interfaces. Generally, you need to use the data source control to connect to the database and return a data set. Then, you can use the data binding control to display, update, and delete data. With the powerful support of Visual Studio 2005, developers can quickly implement the above functions without writing a line of code.
4.2.1. (3) verification controls:
They are a special set of controls that contain verification logic to test user input. These include: requiredfieldvalidator, rangevaliedator, regularexpressionvalidator, and comparevalidator. Developers can append the verification control to the input control to test the content that the user enters into the control. The verification control can be used to check input fields and test against specific values or modes of characters to verify whether a value is within a limited range or other logic.
4.3. (4) site navigation controls:
This type of control can be combined with site navigation data to implement site navigation. Including menu, sitemappath, and Treeview. For large websites, site navigation controls have broad application prospects.
4.4. (5) webparts control:
Web parts are a great feature that allows you to create Web applications with highly personalized features. The webparts control is required to implement the Web part function. ASP. NET 2.0 provides the following controls, such as webpartmanager, webpartzone, editorzone, catalogzone, pagecatalogpart, and appearanceeditorpart.
4.5. (6) logon control:
This type of control can quickly implement user logon and related functions, such as displaying the logon status, restoring the password, and creating new users. Including: loginview, login, createuserwizard, and loginstatus.
Atitit. componentized event-based programming model-Server Control (1) --------- relationship between server control and label