Postback issues with ShowModalDialog

S

Satya

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
 
B

Bruno Piovan

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
 

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,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top