Blog first post: Send a dialog box control you just created

Source: Internet
Author: User

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

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.