Hi,
Welcome to ASP.NET forums! I'm glad to see your active participation and discussion in ASP.NET forums. Based on my understanding your problem is about client script knowledge (JavaScript [window object]).
I recommend that "window.showModalDialog ()" is a better choice. Most browsers are support it. There are some steps you need to do.
Step 1- create a new page as popup up dialog name is “Default2.aspx”. Code below:
Thanks for the help. I ended up using the example on the following link: http://elijahmanor.com/webdevdotnet/post/jQuery-UI-Dialog-w-Resizable-iFrame.aspx
MetalAsp.Net
Maybe if you make use of an IFrame or UFrame.
Marked as answer by a.amitshah on May 01, 2010 10:37 PM
a.amitshah
Member
17 Points
8 Posts
ASP.NET Dialog Box using JQuery
Apr 25, 2010 11:02 PM|LINK
Hi,
I am trying to create a dialog box in asp.net using JQuery. Is it possible to load a aspx form as a dialog on another form?
I tried to look for any jquery dialog plugins, but I could not find one which would allow to open a aspx form as a dialog.
Can anyone please help?
Thanks
Amit
jquery asp.net 3.5.
MetalAsp.Net
All-Star
112051 Points
18235 Posts
Moderator
Re: ASP.NET Dialog Box using JQuery
Apr 25, 2010 11:50 PM|LINK
Maybe if you make use of an IFrame or UFrame.
Yan Jun - MS...
Participant
1105 Points
118 Posts
Re: ASP.NET Dialog Box using JQuery
Apr 27, 2010 03:01 AM|LINK
Hi,
Welcome to ASP.NET forums! I'm glad to see your active participation and discussion in ASP.NET forums. Based on my understanding your problem is about client script knowledge (JavaScript [window object]).
I recommend that "window.showModalDialog ()" is a better choice. Most browsers are support it. There are some steps you need to do.
Step 1- create a new page as popup up dialog name is “Default2.aspx”. Code below:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>My Input Dialog</title> </head> <body> please input some code: <input type="text" /><br /> <input type="button" onclick="window.close()" value="Ok" /> </body> </html>Step 2 - Add some JavaScript in main page(main.aspx). Code below
<script language="javascript"type="text/javascript"> window.showModalDialog("popup.aspx",null,"dialogWidth:200px;dialogHeight:200px"); </script>Step 3- Open main.aspx and test
The method "window.showModalDialog()" more details: http://msdn.microsoft.com/en-us/library/ms536759(VS.85).aspx
If you still have any doubt and concern about this issue, please let me know. If I misunderstood you, please kindly elaborate your question.
Please Mark as AnsweredIf this is helpful Or Un-Mark as Answered if it is not helpful.
Yan Jun
sandy060583
Star
8714 Points
1624 Posts
Re: ASP.NET Dialog Box using JQuery
Apr 27, 2010 06:06 AM|LINK
using facebox you can easily display aspx page inside popup box with the help of jQuery.
see this : http://famspam.com/facebox
i have already done this.. & very useful & looks is very fancy..
hope this will also help you !!!
Ramani Sandeep (My Blog)
(MCTS, MCC-2011)
a.amitshah
Member
17 Points
8 Posts
Re: ASP.NET Dialog Box using JQuery
May 01, 2010 10:34 PM|LINK
Thanks for the help. I ended up using the example on the following link: http://elijahmanor.com/webdevdotnet/post/jQuery-UI-Dialog-w-Resizable-iFrame.aspx