I have never liked the default dialog box style. I saw a nice dialog box on the Internet and modified it myself. net version, which has only been tested in IE and has not been tested yet. Three other problems have not been solved yet: 1. I cannot perform the same as the Microsoft Ajax-scriptmanager control, the limited number of pages.Source codeUseful
Alertmsg existinginstance = Alertmsg. getcurrent ( This . Page );
Protected Static Alertmsg getcurrent (page)
{
If (Page = Null )
{
Throw NewException ("Verify the page");
}
Int I = Page. Items. count;
Return Page. items [ Typeof (Alertmsg)] As Alertmsg;
}
But what I got for the second time is null;
2. a css button was originally intended to be embedded, but it seems that the button cannot be used;
Hope you know your advice
3. Because both the covering layer and the dialog layer are invisible at the beginning, you will find that nothing is invisible when dragged to the page. How to implement
Okay, there's not much nonsense. Check the picture.
Use the following statement:
HTML:
<% @ Register namespace = " Treecontrols " Assembly = " Treecontrols " Tagprefix = " Tree " %>
< Tree: alertmsg ID = "Alertmsg1" Runat = "Server" />
CS: Protected Void Button#click ( Object Sender, eventargs E)
{
Alertmsg1.title = " Message 2 " ; /**/ ///// Title
Alertmsg1.showtreealertmsg ( " Dialog Box !!!! " ); /**/ ///////////////// Display the dialog box content
}
Because the sourceCodeIf you need to update the example, go to the following steps:
Http://www.x-wow.net/wow/TreeControl-Dilog.aspx