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.