asp.net.ph

HtmlButton Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to the HTML <button> element on the server.

HtmlButton Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlButton ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public CausesValidation Boolean [ Get , Set ]
public ValidationGroup String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected OnServerClick ( EventArgs e ) Void
protected RaisePostBackEvent ( String eventArgument ) Void
protected RenderAttributes ( HtmlTextWriter writer ) Void

Collapse   Events

Multicast Name Type
multicast ServerClick EventHandler

Remarks

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.

See Also

HtmlInputButton   HtmlContainerControl Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph