|
-
March 24th, 2004, 06:15 AM
#1
get the REFRESH button event from the browser
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 ?
-
March 25th, 2004, 02:25 PM
#2
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())
Good Luck,
Craig - CRG IT Solutions - Microsoft Gold Partner
-My posts after 08/2015 = .NET 4.x and Visual Studio 2015
-My posts after 11/2011 = .NET 4.x and Visual Studio 2012
-My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
-My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
-My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
-My posts before 04/2007 = .NET 1.1/2.0
*I do not follow all threads, so if you have a secondary question, message me.
-
March 26th, 2004, 03:12 AM
#3
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 !!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|