showModalDialog

G

Guest

Hi,

In an ASP.NET page, I am using the following script to open a modal window:

window.showModalDialog("About.aspx", window, "dialogWidth=800px;
resizable=no; scrollbars=no;");

The window opens okay, but I cannot select the content. Is there a way to
make the content selectable, so that I can copy and paste the information
contained in the modal window?

Thanks.
Mike
 
M

Mohamed El Ashmawy

Hello Mike,
The window.ShowModalDialog method creates a new window in the client
browser and the user can't switch to the openning one.
The contents of the opened window would be the URL specified in the
parameters which is "About.aspx" in your case. This page would be a normal
aspx page that has all the conents the you need to use.
I don't understand what you by making the content selectable as this would
be an aspx page and you could implement whatever you want in it; however,
if you mean that you want to switch contents and control between the caller
page and the Aboud.aspx page, you could use window.open instead of
window.ShowModal dialog.
Using Window.open opens the window open and you can switch between the 2
pages.

Regards
Mohamed El Ashmawy
MEA Developer Support Center
ITWorx on behalf of Microsoft EMEA GTSC
 
E

Ersin Gençtürk

Mohamed is right ,
you have to open it with window.open not window.showmodaldialog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top