Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Postback issues with ShowModalDialog

Reply
Thread Tools

Postback issues with ShowModalDialog

 
 
Satya
Guest
Posts: n/a
 
      03-27-2007

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

 
Reply With Quote
 
 
 
 
Bruno Piovan
Guest
Posts: n/a
 
      03-27-2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
>
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postback Not detected after showModalDialog is used MikeB ASP .Net 1 12-30-2011 11:54 AM
ShowModalDialog postback - SOLUTION Jinx ASP .Net 1 01-21-2008 06:10 AM
showModalDialog issues =?Utf-8?B?Q2hyaXM=?= ASP .Net 3 11-30-2004 08:29 AM
Open showModalDialog from showModalDialog Jonathan Javascript 0 07-19-2004 02:30 PM
window.showModalDialog and PostBack Henry Johnson ASP .Net 2 06-30-2004 02:13 AM



Advertisments