468,251 Members | 1,479 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,251 developers. It's quick & easy.

Question about auto refresh on Page_load

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

Jun 1 '06 #1
1 1117
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.
Jun 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.