System.Web.UI.HtmlControls Namespace
Allows programmatic access to the HTML <button> element on the server.
Visibility |
Constructor |
Parameters |
public |
HtmlButton |
( )
|
|
The <button> element creates buttons which function like buttons created with the <input type=button> element, but offer richer rendering possibilities. The <button> element may have content that can be composed of embedded HTML elements, including other server controls.
Though <button> can contain images, it is not valid to associate an image map with an <img> that appears as the contents of a <button> element.
Conforming browsers typically render <button> with relief and an up/down motion when clicked.
When the <button> object is submitted in a form, Microsoft Internet Explorer® 5 and later submits the value, if it exists. Otherwise, the InnerText is submitted. In Microsoft Internet Explorer® 4, only the InnerText value is submitted.
NOTE: 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 HtmlInputButton class.
For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlButton in ASP.NET Syntax for HTML Controls.
HtmlInputButton HtmlContainerControl