| Visual Basic (Declaration) | |
|---|---|
Public Property ServiceUrl As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebNotification Dim value As String instance.ServiceUrl = value value = instance.ServiceUrl | |
| C# | |
|---|---|
public string ServiceUrl {get; set;} | |
When the ServiceType is set to WebForm, you can set the ServiceUrl to either the current caller page or another WebForm page in the application. The best practice for WebForm ServiceType is by assigning the ServiceUrl to another WebForm page which is created to serve the notifications purpose. With this flexibility, you are no longer restricted to call the self current page which exposes performance issues and ineffective codes design.
When the ServiceType is set to WebService, you can set the ServiceUrl to the web service page containing the method required by WebNotification control. For more information please refer to WebNotification Features.
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