Hello All,
I would like to trap the event that occurs when the user clicks on the REFRESH BUTTON in my webform1.aspx.vb
Any idea ?
Printable View
Hello All,
I would like to trap the event that occurs when the user clicks on the REFRESH BUTTON in my webform1.aspx.vb
Any idea ?
I don't think you can trap the refresh button. You can, however, set expirations on the page, which might help with what you are trying to accomplish:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(Now())
Thank you, Craig
Your way was the good one. In fact, I reach my goal using :
Me.Context.Response.Buffer = False
Me.Context.Response.Cache.SetExpires(Now())
With these to line, I go trought the Page_Load(...) on the refresh button event, and the content of the page is really re-update each time.
YOU ARE A REAL GURU !!!