How to Redirect to a Dialog not a Window?
-
Here is the problem, Our current project have some page which will pop up some subWindow,and we want to disable the main window until the user finished the operation on subwindow, so we use JavaScrip's function showModalDialog() to show a modal dialog instead of window.open(),but the problem is the the page which will show in the dialog must be specified when we call showmodaldialog().We want to decide the page at run time ,and we want to excute some operation before we've been redirect to that page,which be displayed in the dialog.How can we do this?:doh: -- modified at 23:00 Sunday 6th November, 2005
-
Here is the problem, Our current project have some page which will pop up some subWindow,and we want to disable the main window until the user finished the operation on subwindow, so we use JavaScrip's function showModalDialog() to show a modal dialog instead of window.open(),but the problem is the the page which will show in the dialog must be specified when we call showmodaldialog().We want to decide the page at run time ,and we want to excute some operation before we've been redirect to that page,which be displayed in the dialog.How can we do this?:doh: -- modified at 23:00 Sunday 6th November, 2005
You're already using javascript, just change the code so that the page to be run can be specified. If you decide which page to show in the code behind, then write the correct page into the call to showModalDialog when you add the script block in your codebehind. Christian Graus - Microsoft MVP - C++
-
Here is the problem, Our current project have some page which will pop up some subWindow,and we want to disable the main window until the user finished the operation on subwindow, so we use JavaScrip's function showModalDialog() to show a modal dialog instead of window.open(),but the problem is the the page which will show in the dialog must be specified when we call showmodaldialog().We want to decide the page at run time ,and we want to excute some operation before we've been redirect to that page,which be displayed in the dialog.How can we do this?:doh: -- modified at 23:00 Sunday 6th November, 2005
hi there?? Have you tried passing the pagename as parameter to your javascript function. or you can send me your code, i can help you.:) Any systematic work reflects its significance for a long time, Though I m not totally against "The Prototyping".So let's discuss in depth...