Intersoft WebDesktop Documentation
Unbound Notify
See Also Send Feedback
Intersoft WebDesktop > Release History > V2.0 > WebNotification Component > Unbound Notify

Glossary Item Box

In its initial concept, WebNotification is a control that acts as a timer which periodically interact with a server side resource, either it is WebForm or WebService. When the server side returns WebNotificationEvent object, the WebNotification control will display an Outlook-like or Messenger-like notification window. This means the WebNotification control should be assigned to a WebForm or WebService resource through its ServiceUrl property. This is called as Bound Mode Notification.

New in WebNotification 2.0 is the ability to send notification from the WebForm page's code behind without the needs to create additional WebService or other proxy resource.
Called as Unbound mode, this new feature enables basic scenarios that do not require periodic timer to be implemented easily and programmatically in code behind.
For instance, you want to display a one-time notification during first load of a web page to inform visitors that the site is currently under maintenance. You can easily add a WebNotification control to the web page and use Notify method in the web page's code behind. See sample codes in the following.
protected void Page_Load(object sender, EventArgs e) 
{ 
   WebNotification1.Notify("Some of our website's features are disabled due to maintenance. We apologize for the inconvenience.", 
"./Images/Warning-32.gif", "Maintenance");
}

The Notify method used in above sample takes 3 parameters, the description text, the image and the caption text. There are 4 overloads for the Notify method with various parameters for your convenience in coding.

See Also

Other Resources
{What's New in 2.0}

© 2012 Intersoft Solutions Corp. All Rights Reserved.