| Visual Basic (Declaration) | |
|---|---|
Public Property AutoPostback As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebButton Dim value As Boolean instance.AutoPostback = value value = instance.AutoPostback | |
| C# | |
|---|---|
public bool AutoPostback {get; set;} | |
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. Otherwise, when operates in server side mode, developers can write codes in OnClick server side event to response the button click. Optionally, developers can also handle both client and server side events for maximum interactivity. If the return value is False in client side event, the server post back will not be invoked further.
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