| ASP.Net HTML Server Control |
| |
| ASP.Net Server Controls |
| |
| ASP.NET server controls offer a consistent programming model. Using ASP.NET server controls, each different type of functionality corresponds to a specific control like all text is entered using the TextBox control: the number of lines is specified using a property. The ASP.NET server controls include all the functionality provided by HTML controls and much more. |
| |
| ASP.NET Web server controls are objects on ASP.NET Web pages that run when the page is requested and render markup to a browser. Many Web server controls are similar to familiar HTML elements, such as buttons and text boxes. Other controls encompass complex behavior, such as a calendar controls, and controls that manage data connections. |
| |
| The ASP.Net examines the userâs request to get type and version of browser, then it produces Html output specific to that browser. The type of controls used in Asp.net is Asp.net server controls and these server controls may have methods and events handlers linked with them. The server controls code is processed on server. |
| |
| ASP.NET Server Controls use well-formed XHTML syntax, through ASP.NET HTML Server is tolerant of missing quotation marks around attribute values. Specifically, the angle brackets must be self closing, or have closing elements. |
| |
| For example, any one of the following code can be used. |
| |
<asp:TextBox id="textbox"
Width=?200px?
Text=?My Text?
runat="server" >
</asp:TextBox>
or
<asp:TextBox id="textbox"
Width=?200px?
Text=?My Text?
runat="server" /> |
| |
|
| |