Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Star
10411 Points
1196 Posts
Apr 17, 2012 02:43 AM|LINK
Hi, you can try jQuery dialog, for example:
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> <style type="text/css"> #dialog { background-color: Gray; } </style> <script type="text/javascript"> $(function () { $('#dialog').dialog({ autoOpen: false, modal: true }); $('#Button1').click(function () { $("#dialog").dialog("open"); }); }); </script> </head> <body> <form id="form1" runat="server"> <div> </div> <input id="Button1" type="button" value="Login" /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <div id="dialog" title="Please Login"> <asp:Login ID="login" runat="server" CreateUserText="Click here to register" CreateUserUrl="~/register.aspx" /> </div> </form> </body> </html>
For more details about jQuery dialog, you can refer to the following link:
http://jqueryui.com/demos/dialog/
Allen Li - M...
Star
10411 Points
1196 Posts
Re: pop ups in vb 2005
Apr 17, 2012 02:43 AM|LINK
Hi, you can try jQuery dialog, for example:
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> <style type="text/css"> #dialog { background-color: Gray; } </style> <script type="text/javascript"> $(function () { $('#dialog').dialog({ autoOpen: false, modal: true }); $('#Button1').click(function () { $("#dialog").dialog("open"); }); }); </script> </head> <body> <form id="form1" runat="server"> <div> </div> <input id="Button1" type="button" value="Login" /> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <div id="dialog" title="Please Login"> <asp:Login ID="login" runat="server" CreateUserText="Click here to register" CreateUserUrl="~/register.aspx" /> </div> </form> </body> </html>For more details about jQuery dialog, you can refer to the following link:
http://jqueryui.com/demos/dialog/
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework