Look at a. NET version of the dialog box control

Source: Internet
Author: User
Tags net

Always do not like the default dialog style, the Internet to see a more good-looking dialog box, their own modified under the. NET version, only in IE under the test, the other has not yet time to test, the specific three problems are not resolved:

1, I have no way like Microsoft Ajax-scriptmanager control, the number of each page limit, see the next ScriptManager source code useful to

The following are the referenced contents:
Alertmsg existinginstance = Alertmsg.getcurrent (this. Page);


protected static alertmsg GetCurrent (Page page)
{
if (page = = null)
{
throw new Exception ("Please verify page");
}
int i = page. Items.Count;
Return page. Items[typeof (alertmsg)] as alertmsg;
}

But the second time I got it was null;

2, originally wanted to embed a CSS button, but it seems that the button can not apply;

3, because the Mask Layer and dialog box layer is not visible at the beginning, then dragged to the page will find nothing to see, how to achieve like ScriptManager have a

Okay, there's not much to talk about, look at the pictures

Called by the following statement:

Html:

The following are the referenced contents:
<%@ Register namespace= "Treecontrols" assembly= "Treecontrols" tagprefix= "Tree"%>


<tree:alertmsg id= "ALERTMSG1" runat= "Server"/>

Cs:

The following are the referenced contents:
protected void Button1_Click (object sender, EventArgs e)
{
Alertmsg1.title = "Message 2"; /**//////Title
ALERTMSG1.SHOWTREEALERTMSG (dialog box!!!!        "); /**//////////////////Display dialog box contents
}

You can change the header and content, you can also change the mask layer color, transparency, and so on, and put the source code and DLL custom dialog box control.



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.