Gets a list of event handler delegates for the control. Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. Gets or sets a value indicating whether themes apply to this control. Gets or sets a value indicating whether the HTML server control is disabled. Gets a value indicating whether a control is being used on a design surface. Gets a reference to the naming container if the naming container implements IDataKeysControl. Gets a reference to the naming container if the naming container implements IDataItemContainer. Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
Gets the HttpContext object associated with the server control for the current Web request. Gets a character value representing the separator character used in the ClientID property. Gets or sets the algorithm that is used to generate the value of the ClientID property. Gets the control ID for HTML markup that is generated by ASP.NET.
Gets a value that indicates whether the server control's child controls have been created. Gets or sets a value indicating whether validation is performed when the HtmlButton control is clicked. Gets the control that contains this control's data binding. Gets a collection of all attribute name and value pairs expressed on a server control tag within the ASP.NET page. Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. Gets the browser-specific adapter for the control. Initializes a new instance of the HtmlButton class. For more information, see Validation Server Control Syntax. Validation server controls are also provided to assess user input. ASP.NET provides an input request validation feature to block script and HTML in user input.
Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. This control can be used to display user input, which might include malicious client script. The element allows Web developers to create user interface (UI) form buttons that can be composed of embedded HTML elements, including other server controls. Message.InnerHtml = "Your name is: " & Name.Value Sub FancyBtn_Click(Source As Object, E as EventArgs) Message.InnerHtml = "Your name is: " + Name.Value Protected void FancyBtn_Click(object sender, EventArgs e)
The following code example demonstrates how to use the ServerClick event to display the name entered in the text box.