Reload after going back

C

CC

Newbie here. I figured out how to use jscript and history.go(-2) to
go back to a previous page. However, I want that page to reload in
order to show the updated information.

i.e.
-user is on pageX, clicks link to pageY
-user adds "John Doe" in a textbox and clicks on a submit button (this
adds the name to database)
-I want control to go back to pageX, which now shows John Doe's name
in the listbox.

A reload would accomplish this, but how can it be done? Is there
anyway to force the pageX's Page_Load event to be invoked upon return?

(I'm using C#)

TIA
 
C

CC

This seemed to work for me...

(put in Page_Load event of pageX)

Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.Now)
 

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

Top