Share a plain version of the pop-up window like MSN/QQ (C #)

Source: Internet
Author: User

In this article, the invitation Month Once introduced the pop-up window like MSN and QQ after using cookies to log on. The original control is encapsulated when it is used again in the project today, provides the following attributes:

1. PopShowCycle: Pop-up period. The default value is OnceByReCreateCookie.

OnceByReCreateCookie, OnceByCreateCookie, is only displayed for the first time and Cookie records are used until the cookie expires.

PerPage.

2. CookieWorkMinutes: The number of minutes that the cookie lasts. The default value is 60. Except for manually clearing cookies.

3. Add a new ColorStyle attribute.Random. It turns out to be Green, Blue, Red, Violet, and m.

In addition, the pop-up window can completely customize the style, content, and link of the pop-up window,This control supports Firefox, IE, and Opera, Other browsers are not tested.

Let's take a look at the final effect:

It is easy to use. You can add the following code to the aspx page and drag it directly to the page.

<%@ Register assembly="AgronetControl. PopupWin"Namespace="AgronetControl"Tagprefix="PC3" %>

<FormId= "Form1"Runat= "Server">
<Div>
<PC3: PopupWinID= "PopupWin"Runat= "Server"ActionType= "OpenLink" Link= "Http://www.cnblogs.com /"
LinkTarget= "_ Target"Message= "Access cnblogs"PopShowCycle= "PerPage"
ColorStyle= "Random"Title= "IE 10 Preview Release! " />
</Div>
</Form>

Of course, it can also be controlled in the cs file to be more flexible.

Invitation month Note: The copyright of this article is jointly owned by the invitation month and the blog Park. For details, please indicate the source.

Related Article

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.