modal popup Javascript in asp.net

C

csgraham74

Hopefully someone can help me with this

im trying to creat a modal dialog box in asp.net using the following

Dim str_JavaPopup As String = "<script language" &
"='javascript'>window.showModalDialog('frm_MoreInfo.aspx?ProductImage="
& str_ImageName & "&ProductDesc=" & str_Description & "','dialogWidth:
100px;dialogHeight: 100px;center: yes;resize: no;status: no;help:
no');</Script>"

Me.Page.RegisterStartupScript("Startup", str_JavaPopup)

the window opens fine but the window does not resize

is my code ok??

thanks in advance
 
Y

Yann-Erwan Perio

(e-mail address removed) wrote:

Hi,
100px;dialogHeight: 100px;center: yes;resize: no;status: no;help:
the window opens fine but the window does not resize

Well, what about setting resize:yes instead of no? ;-)


HTH,
Yep.
 

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

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top