modal popup Javascript in asp.net

Discussion in 'Javascript' started by csgraham74@hotmail.com, Jun 8, 2005.

  1. Guest

    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
    , Jun 8, 2005
    #1
    1. Advertising

  2. 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.
    Yann-Erwan Perio, Jun 8, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. H00ner
    Replies:
    19
    Views:
    19,443
    topraveen
    Jul 20, 2010
  2. dapkniht
    Replies:
    1
    Views:
    1,320
    Eliyahu Goldin
    Mar 8, 2006
  3. Leila
    Replies:
    0
    Views:
    391
    Leila
    Apr 26, 2005
  4. Matt
    Replies:
    1
    Views:
    3,124
    Whitecrest
    Jun 1, 2004
  5. Jens Peter Hansen
    Replies:
    7
    Views:
    499
    Randy Webb
    Jun 19, 2004
Loading...

Share This Page