| Visual Basic (Declaration) | |
|---|---|
Public Property EnableUIMode As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebFlyPostBackManager Dim value As Boolean instance.EnableUIMode = value value = instance.EnableUIMode | |
| C# | |
|---|---|
public bool EnableUIMode {get; set;} | |
When UIMode is enabled, the ASP.NET standard controls such as DropDownList, ListBox, etc. will be automatically redirected to use FlyPostBack instead of standard full page postback. The page life cycle will be executed as in normal postback life cycle. In UI (User Interface) mode, you can use the FlyPostBackManager component to refresh specific server side controls without causing full page postback. The number of controls that will be affected depend on the value in UpdateMode property. You can decide whether all ASP.NET standard controls should be converted to use FlyPostBack or only specific individual controls by configuring the UpdateMode property.
This feature can only be enabled when the component is using WebForm mode (ServiceType = WebFom).
Several things to note while you are enabling automatic callback feature:
- You can place your codes in the control's events the same way and manner as the WebForm is operating in full postback.
- The results of the rendering are delta. That means modified controls are automatically detected, and only modified controls are rendered back to client.
- Page life cycle and view state is persisted automatically between postbacks. Note that the PostInputControls and PostViewState property in the FlyPostBackSettings should be automatically set to True when you enable the UI mode.
- No single line of javascript codes is required.
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