Question about auto refresh on Page_load

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
 
T

Tor Bådshaug

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.
 

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