
| Visual Basic (Declaration) | |
|---|---|
Public Class WebButton Inherits ISNet.WebUI.ISNetControl Implements ISNet.ICopyable, ISNet.IObjectState, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.Serialization.XmlSerialization.IXmlSerialize, ISNet.WebUI.IBaseISNetControl, ISNet.WebUI.IClientAction, ISNet.WebUI.IFlyPostBack, ISNet.WebUI.IInfo, ISNet.WebUI.ILayoutSettings | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebButton | |
| C# | |
|---|---|
public class WebButton : ISNet.WebUI.ISNetControl, ISNet.ICopyable, ISNet.IObjectState, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.Serialization.XmlSerialization.IXmlSerialize, ISNet.WebUI.IBaseISNetControl, ISNet.WebUI.IClientAction, ISNet.WebUI.IFlyPostBack, ISNet.WebUI.IInfo, ISNet.WebUI.ILayoutSettings | |
WebButton can be used either stand-alone or integrated with WebDesktopManager. To cover the flexibility and to manage a consistent look and feel throughout the application, WebButton's styles will be inherited from WebDesktopManager to guarantee the consistent dynamic styles throughout the entire application. On the other hand, you can also choose your WebButton instances to become stand-alone component, which means you are free to choose your own styles and behaviors for each button.
Following are some important features of WebButton.
- AutoPostBack
WebButton can operate in client side or server side mode. The default is client side mode where AutoPostBack is set to False. When operates in client side mode, developers generally implement the OnClientClick client side event to execute the javascript codes to response the button click. - PostBackMode
WebButton is taking advantage of FlyPostBack and ClientAction architecture enabling the Button to execute server side codes in Button's OnClick event without full page refresh. - DesktopManager Integration
The integration to DesktopManager component enables the button to resemble the look and feel of CommandButtonStyle, CommandButtonDisabledStyle, CommandButtonBorderType and CommandButton's ComplexImages which specified in DesktopManager level. - Convenient Parameter Passing
WebButton introduces a convenient way in passing parameter which is one of the most common practice required in web application development. The Parameter property can be set in both server side and client side to pass information during postbacks.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
ISNet.WebUI.ISNetControl
ISNet.WebUI.WebDesktop.WebButton
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
WebButton MembersISNet.WebUI.WebDesktop Namespace
Tasks
Configuring Interactive Style of WebButtontasks
Enabling Automatic Postback when ClickedExecuting server side codes in FlyPostBack mode
Using ClientAction engine during FlyPostBack execution.