Postback issues with ShowModalDialog

Discussion in 'ASP .Net' started by Satya, Mar 27, 2007.

  1. Satya

    Satya Guest

    Hello,

    I am using ShowModalDialog to display modal dialog in our
    application. I am displaying modal dialog (WebForm1.aspx -
    DropdownList's ,TextBox's and Ok and Cancel buttons placed on it) from
    default.aspx. Everything looks to be working fine until I tried
    handling "OK" and "Cancel" event's on code behind of
    WebForm1.aspx(modal dialog).

    Login window being displayed on new browser window every time I click
    either 'OK" or "Cancel" buttons which may be because of loging
    required to access any page in our application.

    Can you guys let me know, what I need to do to handle postback's on
    modal dialog?

    Thanks in advance,
    -Satya
     
    Satya, Mar 27, 2007
    #1
    1. Advertising

  2. Satya

    Bruno Piovan Guest

    Hello,
    try to add
    <base target="_self" />
    inside the head tag of WebForm1.aspx.

    Also consider setting this page to do not cache, otherwise the modal window
    may open with a cached content after the first time it was opened.

    Bruno

    "Satya" <> wrote in message
    news:...
    >
    > Hello,
    >
    > I am using ShowModalDialog to display modal dialog in our
    > application. I am displaying modal dialog (WebForm1.aspx -
    > DropdownList's ,TextBox's and Ok and Cancel buttons placed on it) from
    > default.aspx. Everything looks to be working fine until I tried
    > handling "OK" and "Cancel" event's on code behind of
    > WebForm1.aspx(modal dialog).
    >
    > Login window being displayed on new browser window every time I click
    > either 'OK" or "Cancel" buttons which may be because of loging
    > required to access any page in our application.
    >
    > Can you guys let me know, what I need to do to handle postback's on
    > modal dialog?
    >
    > Thanks in advance,
    > -Satya
    >
     
    Bruno Piovan, Mar 27, 2007
    #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. Jinx
    Replies:
    1
    Views:
    9,367
    CodeLife
    Jan 21, 2008
  2. MikeB
    Replies:
    1
    Views:
    759
    xcasalsv
    Dec 30, 2011
  3. =?Utf-8?B?Q2hyaXM=?=

    showModalDialog issues

    =?Utf-8?B?Q2hyaXM=?=, Nov 30, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    6,876
    Eliyahu Goldin
    Nov 30, 2004
  4. luna

    showmodaldialog issues

    luna, Jan 31, 2006, in forum: ASP .Net
    Replies:
    10
    Views:
    7,947
    Eliyahu Goldin
    Feb 1, 2006
  5. Jonathan
    Replies:
    0
    Views:
    203
    Jonathan
    Jul 19, 2004
Loading...

Share This Page