Asp. NET to realize the function of MSN notification message

Source: Internet
Author: User
asp.net Editor: There are a large number of third-party controls that are present, including all aspects of development, but it is difficult for developers to choose a suitable control, so today we recommend a control that is similar to the MSN Pop-up notification message feature:. If you want to participate in our activities, please write to me.

   Downloading Controls: Popupwin

   usage Examples

MSN by a very good function, is whenever your MSN friends online, MSN automatically in the bottom right corner of the form tray from the bottom up pop-up message box to inform you that this function is very practical, such as in the Forum, when there is a new reply to your post, the system will automatically pop-up message prompt box, or in an e-government system, When you receive a new message or a work order, you can bring the System pop-up message box prompts, and so on. So, how do you implement such a feature in a Web application built by asp.net? In this article, you recommend a. NET control that implements a notification message window effect similar to MSN.

First let's look at how the control is implemented, as shown in the following figure:


As you can see, this control can be used in all types of browsers (Ie,mozilla,netscape,opera), and we can also customize colors, and drag, as shown below:
  


Here's a few ways to use this control.

First, there are two types of events that can be fired in the control: the Linkcliked event (triggered when the connection in the message box is clicked) and the Popupclosed event (triggered when the message box window is closed). Control has three ways to handle these events, and the value of the ActionType property determines these three ways:

1) MessageWindow (default): The default pop-up window will be set with the Title property and text properties for the caption and the text in the window description.

2 OpenLink: At this point, the control allows you to open the link in a new window when you click a text link within the window.

3) Raiseevenst: When this property is selected, the control will handle linkcliked events and popupclosed events on the server side.

It is convenient to use this control simply by using the Add/remove Toolbox feature in Visual Studio. NET, selecting the DLL for the control, which appears in the toolbox and can be dragged into the Web page to apply.

Click the control, and in its designer, you will find rich properties (detailed properties, event descriptions refer to the control's documentation). In the action category bar in the designer, you can specify how the control handles new links that are opened when the user closes the window and clicks the text in the window; in the type and design categories, you can design the font, color, and layout of the pop-up message window (such as whether the setting is ejected from the bottom left or the lower right corner); In the category bar, you can set the pop-up speed of the pop-up window, whether it automatically pops up after the page is loaded, and how long the window will automatically close when it pops up, and whether the window can be set to drag freely and so on.

The following example shows how to use the code by using:

In the popup.aspx:

!--popup.aspx-->
<%@ Register tagprefix= "cc1" namespace= "Eeeksoft.web"
Assembly= "EeekSoft.Web.PopupWin"%>


Colorstyle= "Blue" width= "230px" height= "100px" dockmode= "Bottomleft"
Windowscroll= "False" windowsize= "$" ">"

[1] [2] Next page



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.