How to fix the popup windows' button client refirect to login page?

Discussion in 'ASP .Net' started by ABC, Dec 13, 2005.

  1. ABC

    ABC Guest

    After the application user login, when I click the master page button, it
    popup window using javascript's window.showModalDialog function as:

    Response.Write("<script
    language='javascript'>window.showModalDialog('myURL.aspx', '',
    'dialogWidth:800px:dialogHeight:600px');</script>");

    Then, I click the button on the popup window, it will redirect to login
    page. It is not my expected. It should to do button events under the popup
    window.

    How can I fix it?
     
    ABC, Dec 13, 2005
    #1
    1. Advertising

  2. Try putting
    <base target="_self">

    to the <head> section of myURL.aspx.

    Eliyahu

    "ABC" <> wrote in message
    news:eOU8d65$...
    > After the application user login, when I click the master page button, it
    > popup window using javascript's window.showModalDialog function as:
    >
    > Response.Write("<script
    > language='javascript'>window.showModalDialog('myURL.aspx', '',
    > 'dialogWidth:800px:dialogHeight:600px');</script>");
    >
    > Then, I click the button on the popup window, it will redirect to login
    > page. It is not my expected. It should to do button events under the
    > popup window.
    >
    > How can I fix it?
    >
    >
     
    Eliyahu Goldin, Dec 13, 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. Xah Lee
    Replies:
    22
    Views:
    1,156
    Tim Roberts
    Mar 21, 2006
  2. Xah Lee
    Replies:
    23
    Views:
    1,105
    Tim Roberts
    Mar 21, 2006
  3. Thom Little

    ASP.NET Refirect with POST

    Thom Little, Nov 30, 2006, in forum: ASP .Net Web Services
    Replies:
    5
    Views:
    265
    Dhanraj K.S
    Dec 29, 2006
  4. Xah Lee
    Replies:
    21
    Views:
    830
    Tim Roberts
    Mar 21, 2006
  5. Replies:
    2
    Views:
    481
Loading...

Share This Page