Question about auto refresh on Page_load

  • Thread starter Thread starter Armand
  • Start date Start date
A

Armand

Hi All,
I have got a tricky prob here,
Basically I'd like to refresh my aspx page on page load (once only)
I put this following code on Page_load method:

Response.Write("<SCRIPT
language='javascript'>window.location.reload()</SCRIPT>")

but eventually it refresh repeatedly, Is there a way to set it reload
once only?

Thanks a lot for all your inputs
 
I would generally not recommend to do such reloading, but if you absolutely
have to, you could introduce some state into your page to avoid the endless
recursive
refresh(session state or just the page's view state/querystring params,
depending
on your scenario).

Tor Bådshaug
tor.badshaug [//at\\] bekk.no.
 
Back
Top