| Visual Basic (Declaration) | |
|---|---|
Public Property ServiceType As ServiceType | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebFlyPostBackManager Dim value As ServiceType instance.ServiceType = value value = instance.ServiceType | |
| C# | |
|---|---|
public ServiceType ServiceType {get; set;} | |
Using this property you can determine the service type whether to use WebService or WebForm.
WebService service type is recommended for application that require open API and standards implementation. To request an execution of method from WebServices, you need to change WebFlyPostManager's ServiceType property to WebService and specify its ServiceURL. With this settings you must have an .asmx file that points to WebService Class which WebFlyPostBackManager will refer to. Later on at ClientSide, with WebFlyPostBackManager you can request an execution of method at WebService (e.g HelloWorld()) and retrieve its return value at OnResponseSuccess event.
Note: The Method that is going to be executed from WebServices must be marked with [WebMethod()]
WebForm service type is recommended for application that does not require to be exposed as public API. This service type has some advantages compared to WebService type such as in term of performance and security. It also has the capability to handle wider data types, including Intersoft's proprietary collection objects. To request an execution of method from WebServices, change WebFlyPostManager's ServiceType property to WebService and specify its ServiceURL. With this settings you must have an .aspx file (WebForm) which has a listener (WebFlyPostBackListener). Later on at ClientSide, with WebFlyPostBackManager you can request an execution of Method at WebForm (e.g HelloWorld()) and retrieve its return value at OnResponseSuccess event.
Note: The Method that is going to be executed from WebForm must be marked with[WebFlyPostBackMethod()]
To learn more and the sample codes please read the Service Type concepts.
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