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. |
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.
Other Resources
{What's New in 2.0}
