showModalDialog and asp.net

V

VV

I' am having a problem with reloading asp.net page. First time when I open
dialog with



window.showModalDialog("dialog.aspx", [window], dlgfeat);



Everything works fine, Page_Load is executed in dialog.aspx, but the second
time, nothing happens and page is retrieved (probably from cache). How can I
force dialog.aspx to reload (Page_load needs to be executed) each time when
the dialog is opened.
 
V

VV

Huh, this always happens - I've found it... On detail page_load I need to
add following code:


Response.Cache.SetNoServerCaching()

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)

Response.Cache.SetNoStore()

Response.Cache.SetExpires(New DateTime(1900, 1, 1, 0, 0, 0, 0))
 

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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top