Asp.net, listbox, htc, behavior, autosearch listbox, wcf, certificate Popup dialog opens new window on postback - Discoveries / Experiences in .Net Application development - Site Home - MSDN Blogs

Discoveries / Experiences in .Net Application development

Discoveries during Web Application development using Asp.Net, C# etc

Popup dialog opens new window on postback

Popup dialog opens new window on postback

  • Comments 2

Popup dialog opens new window on postback

hi all,

many times we use  popup dialogues opened with window.showmodaldialog(“samp.aspx“). but if there is postback happening on this window , you would see that this aspx opens in a new window.

i have a solution.. which is

add this to the head of your aspx
<head>
<title>Text</title>
 <BASE target="_self">
.
.
</Head>

after adding you need to kill worker process rebuild and restart iis before you test this.

bcos iis always serves the cached version of the aspx as a popup.

Page 1 of 1 (2 items)
Leave a Comment
  • Please add 5 and 6 and type the answer here:
  • Post