Intersoft WebDesktop Documentation
AutoEventWireup Property
See Also  Send Feedback
ISNet.WebUI.WebDesktop Namespace > WebFlyPostBackManager Class : AutoEventWireup Property


Glossary Item Box

Gets or sets a boolean value indicating whether the OnResponseSuccess function event should be wired up automatically.

Syntax

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;}

Remarks

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]

Requirements

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

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.