HTML control in .NET
When the ASP.NET web page is executed, check the label has a RUNAT property. If the label does not set this property, then the label will be considered a string and is sent to the browser waiting to be sent to the client to interpret. If there is a setting runat = "server" property, the object is generated in accordance with the HTML control corresponding to the label, so the generation of the ASP.NET object is determined by the RUNAT attribute value. When the program is resolved to the label with the specified runat = "server" attribute, the Page object is loaded from the .NET shared class library and listed in the control schema, indicating that this control can be controlled by the program. When the program is executed, the execution result of the HTML control is converted into an HTML annotation and then sent to the character stream and the general label to download to the client's browser for interpretation.
The attribute of the HTML control in .NET 1. InnerHTML, and Innertext These two properties are primarily used to set the text to be displayed by the control. 2.Disable property: The disable property of the control. 3.Visible Properties: Display properties of the control. 4.Attributes Property: The first is the object usually used in front. Attribute, and another is the object. Attributes 5.Style Properties: Styles Properties. For example: Button1.Style ("background-color") = "# fff00" 'Setting color button1.style ("color") by RGB = "blue" Button1.style ("font-family") = "standard "'Setting the Dictionary Button1.Style (" Font-size ") =" 20pt "Set Font Size Button1.Style (" Font-Style ") =" Italic "Set to bertlastic word button1.style (" Font-weight ") =" bold "set to bold word button1.style (" text-decoration ") =" underline "set to bottom line word Button1.Style (" text-transform ") =" Uppercase " 'Capture the Based HTML Control 1.HtmLanchor Control: You can specify a hyperlink. The attribute is: HREF, TARGET, TITLE, NAME 2.HTMLIMAGE control: image control. The properties include: SRC, Width, Height, Border, Align, Alt 3.htmlButton control: Press New Control. The method of the specified method is: ONSERVERCLICK. The attributes are: Style 4.htmlForm Control: Transfer the data on the Client side to the Server Termration, Properties: Method, Action 5.htmlInput Control: Enter the box control.