Reload after going back

  • Thread starter Thread starter CC
  • Start date Start date
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
 
This seemed to work for me...

(put in Page_Load event of pageX)

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