| Visual Basic (Declaration) | |
|---|---|
Public Property AutoEventWireup As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebFlyPostBackManager Dim value As Boolean instance.AutoEventWireup = value value = instance.AutoEventWireup | |
| C# | |
|---|---|
public bool AutoEventWireup {get; set;} | |
By enabling the AutoEventWireup, you do not need to attach to the OnResponseSuccess client side event. The component runtime will automatically look for the prefixed function name and call it if it existed. See following sample codes.
function Button1_Click()
{
var fpbManager1 = ISGetObject("dataService");
fpbManager1.GetCollection();
}
function dataService_OnGetCollection(result)
{
alert("GetCollection result is :" + result);
}
As shown in the sample codes above, the component will automatically call specific function name having this format: [component ID]_On[method name]
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