System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Web.UI.HtmlControls.HtmlContainerControl System.Web.UI.IPostBackEventHandler System.Web.UI.SupportsEventValidation System.ComponentModel.DefaultEvent("ServerClick") The <button> element allows Web developers to create user interface (UI) form buttons that can be composed of embedded HTML elements, including other server controls. The <button> element is defined in the HTML 4.0 specification and is supported only in Microsoft Internet Explorer version 4.0 and later. To create UI form buttons for use in other browsers, consider using the class. To perform a set of custom instructions when the control is clicked, provide a custom event handler for the event. The control renders ECMAScript to the client browser. The client browser must have ECMAScript enabled for this control to function properly. For more information on client script, see Client Script in ASP.NET Web Pages. For a list of initial property values for an instance of , see the constructor. This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Validation Server Controls. Allows programmatic access to the HTML <button> tag on the server. Constructor Use this constructor to create and initialize a new instance of the control. The following table shows the initial property value for an instance of . Property Initial value The "button" literal string. Initializes a new instance of the class. 1.0.5000.0 2.0.0.0 Property System.Boolean To be added: an object of type 'bool' By default, page validation is performed when an control is clicked. Page validation determines whether the input controls associated with a validation control on the page all pass the validation rules specified by the validation control. You can specify or determine whether validation is performed on both the client and the server when an control is clicked by using the property. To prevent validation from being performed, set the property to false. This property is commonly used in the event handler for the event to prevent page validation from occurring when a Cancel or Reset button is clicked. Gets or sets a value indicating whether validation is performed when the control is clicked. 1.0.5000.0 2.0.0.0 System.ComponentModel.DefaultValue(true) Method System.Void The method is used primarily by control developers extending the functionality of the control. Raises the event and registers client script for generating a postback. An that contains event data. 1.0.5000.0 2.0.0.0 Method System.Void The event is raised when the control is clicked. This event causes a round trip to occur from the client to the server and back. It is deliberately different from the client-side OnClick event. If a conflict exists between code run with a event and code run by a client-side OnClick event, the server-side event instructions will override the client-side code. Raising an event invokes the event handler through a delegate. For more information, see Raising an Event. The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. Raises the event. This allows you to provide a custom handler for the event. A that contains the event data. 1.0.5000.0 2.0.0.0 Method 2.0.0.0 System.Void The method is used by the control, when it is clicked, to raise a event. If the property is true, the method is called using the group of controls specified in the property. This method is used primarily by control developers extending the functionality of the control. Raises events for the control when it posts back to the server. The argument for the event. Method System.Void The method writes the onclick attribute of the rendered control, and then calls the base method. The method is used primarily by control developers extending the functionality of the control. Renders the control's attributes to the specified object. The that contains the output stream to render on the client. 1.0.5000.0 2.0.0.0 Event System.EventHandler The event is raised when the control is clicked. This server event causes a round trip to occur from the client to the server and back. It is deliberately different from the client-side OnClick event. If a conflict exists between code run with a event and code run by a client-side OnClick event, the server-side event instructions will override the client-side code. For more information about handling events, see Consuming Events. Occurs when the user clicks an control on the client Web page. 1.0.5000.0 2.0.0.0 Method 1.0.5000.0 2.0.0.0 System.Void To be added. Raises events for the control when it posts back to the server. The event arguments. Property 2.0.0.0 System.ComponentModel.DefaultValue("") System.String To be added. Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently from other validation groups on the page. Use the property to specify the name of the validation group for which the control causes validation when it posts back to the server. This property has an effect only when the value of the property is set to true. When you specify a value for the property, only the validation controls that are part of the specified group are validated when the control posts back to the server. If you do not specify a value for this property and the property is set to true, all validation controls on the page that are not assigned to a validation group are validated when the control posts back to the server. Gets or sets the group of controls for which the causes validation when it posts back to the server.