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.