This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Button Methods
The methods of the Button class are listed below. For a complete list of Button class members, see the Button Members topic.
Public:
AddParsedSubObject (inherited from Control) |
[To be supplied.] |
ApplyStyle (inherited from WebControl) |
[To be supplied.] |
CopyBaseAttributes (inherited from WebControl) |
[To be supplied.] |
DataBind (inherited from Control) |
[To be supplied.] |
Dispose (inherited from Control) |
Override to perform final cleanup. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
FindControl (inherited from Control) |
Overloaded. [To be supplied.] |
GetAttribute (inherited from WebControl) |
Method of IAttributeAccessor. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
HasControls (inherited from Control) |
[To be supplied.] |
HasDataBindings (inherited from Control) |
[To be supplied.] |
LoadPostData |
Method of IPostBackDataHandler interface to process posted data. The Button will examine the posted data to determine if the user clicked this button to instigate the postback. If that is the case, the Button will register with the Page that it wants to raise an event during the event processing phase. |
MergeStyle (inherited from WebControl) |
Merge the attributes set in the specified style that are not already set on the control. |
RaisePostBackEvent |
Method of IPostBackEventHandler interface to raise events on post back. Button fires a Click event and a Command event if a Command is defined. |
RaisePostDataChangedEvent |
Method of IPostBackDataHandler interface. Not applicable for Button. |
RenderBeginTag (inherited from WebControl) |
Render the begin tag. This is made public so other controls can use to render multiple controls. |
RenderControl (inherited from Control) |
[To be supplied.] |
RenderEndTag (inherited from WebControl) |
Render the end tag. This is made public so other controls can use to render multiple controls. |
SetAttribute (inherited from WebControl) |
Method of IAttributeAccessor. |
SetRenderMethodDelegate (inherited from Control) |
[To be supplied.] |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
AddAttributesToRender |
[To be supplied.] |
BubbleEvent (inherited from Control) |
[To be supplied.] |
BuildProfileTree (inherited from Control) |
[To be supplied.] |
ClearChildViewState (inherited from Control) |
[To be supplied.] |
CreateChildControls (inherited from Control) |
[To be supplied.] |
CreateControlStyle (inherited from WebControl) |
A protected method used to create the style object that is used internally to implement all style related properties. Controls may override to create an appropriate typed style. |
DesignTimeRenderInternal (inherited from WebControl) |
[To be supplied.] |
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
FindControl (inherited from Control) |
Overloaded. [To be supplied.] |
Init (inherited from Control) |
Used by control developers to initialize child controls. |
InvokeBubbleEvent (inherited from Control) |
[To be supplied.] |
IsLiteralContent (inherited from Control) |
[To be supplied.] |
IsMarked (inherited from Control) |
[To be supplied.] |
LoadState (inherited from WebControl) |
Load previously saved state. Overridden to handle State, Style, and Attributes. |
Mark (inherited from WebControl) |
Begin tracking state changes on the control. Any changes made after "mark" will be tracked and saved as part of the control viewstate. |
MaybeCreateControls (inherited from Control) |
[To be supplied.] |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
OnClick |
Method used to raise the Click event. |
OnCommand |
Method used to raise the Command event. |
OnDataBind (inherited from Control) |
[To be supplied.] |
OnInit (inherited from Control) |
[To be supplied.] |
OnLoad (inherited from Control) |
[To be supplied.] |
OnPreRender (inherited from Control) |
[To be supplied.] |
OnUnload (inherited from Control) |
[To be supplied.] |
PreRender (inherited from Control) |
Performs any prerendering steps necessary prior to saving viewstate and rendering content. |
PreRenderRecursive (inherited from Control) |
[To be supplied.] |
Render (inherited from WebControl) |
Render the control into the given writer. |
RenderChildren (inherited from Control) |
[To be supplied.] |
RenderContents (inherited from WebControl) |
Render the contents of the tag. |
SaveState (inherited from WebControl) |
Save any state that was modified after "mark". |
Event Hookup:
AddOnClick |
Adds an event handler for the Click event. |
AddOnCommand |
Adds an event handler for the Command event. |
AddOnDataBind (inherited from Control) |
[To be supplied.] |
AddOnInit (inherited from Control) |
[To be supplied.] |
AddOnLoad (inherited from Control) |
[To be supplied.] |
AddOnPreRender (inherited from Control) |
[To be supplied.] |
AddOnUnload (inherited from Control) |
[To be supplied.] |
RemoveOnClick |
Removes the given handler for the Click event. If there are duplicate entries, ALL are removed. |
RemoveOnCommand |
Removes the given handler for the Command event. If there are duplicate entries, ALL are removed. |
RemoveOnDataBind (inherited from Control) |
[To be supplied.] |
RemoveOnInit (inherited from Control) |
[To be supplied.] |
RemoveOnLoad (inherited from Control) |
[To be supplied.] |
RemoveOnPreRender (inherited from Control) |
[To be supplied.] |
RemoveOnUnload (inherited from Control) |
[To be supplied.] |
See Also
Button Class | System.Web.UI.WebControls Namespace