the code you posted does not do what you are saying. That code "disables" cache. I'm also not sure what "catch back button button" means...
Since back button is browser specific future, one can't easly control it. It can be done with javaScript, but then where's the point since it can be disabled by a client? You can start by reading Mastering
The Back Button With Javascript.
Please "Mark As Answer" if the post helped you.
mitja.gti | www.mitjagti.com
junmoney83
Member
55 Points
86 Posts
how can i detect when user click back button in android webkit?
Jul 22, 2012 11:40 PM|LINK
Hello,
I want to detect when user click back button in android webkit.
I can detect back button event by below code.
But it does not work in android webkit.
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Is there any way to catch back button button?
mitja.GTI
Star
11157 Points
2094 Posts
Re: how can i detect when user click back button in android webkit?
Jul 29, 2012 04:35 PM|LINK
Hi junmoney83
the code you posted does not do what you are saying. That code "disables" cache. I'm also not sure what "catch back button button" means...
Since back button is browser specific future, one can't easly control it. It can be done with javaScript, but then where's the point since it can be disabled by a client? You can start by reading Mastering The Back Button With Javascript.
mitja.gti | www.mitjagti.com