Handle the Back Button in Browser?
-
Hi In my application their is a situation where I have to Handle the Back Button of the Browser, I have to either 1.Disable the Back Button for that page or 2.Redirect the current page to LoginPage. How can I do both the ways. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Hi In my application their is a situation where I have to Handle the Back Button of the Browser, I have to either 1.Disable the Back Button for that page or 2.Redirect the current page to LoginPage. How can I do both the ways. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
1 - impossible 2 - stupid. If someone clicks back, why would they need to login ? If they have logged out, your app should store that they are logged out, and thus redirect, regardless of if they click back, or where they navigate to.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hi In my application their is a situation where I have to Handle the Back Button of the Browser, I have to either 1.Disable the Back Button for that page or 2.Redirect the current page to LoginPage. How can I do both the ways. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Hi In my application their is a situation where I have to Handle the Back Button of the Browser, I have to either 1.Disable the Back Button for that page or 2.Redirect the current page to LoginPage. How can I do both the ways. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
Put this script inside Head tag of the page. history.forward(); eg.suppose we have to pages.1)default1.aspx 2)default2.aspx if we apply this script to default1.aspx and we use response.redirect to goto second page(default2.aspx)we cant use back button in default2.apsx
-
Put this script inside Head tag of the page. history.forward(); eg.suppose we have to pages.1)default1.aspx 2)default2.aspx if we apply this script to default1.aspx and we use response.redirect to goto second page(default2.aspx)we cant use back button in default2.apsx
What will happen if client has disabled javascript. ? You should not relay on javascript never. Moreover it's not a good solution too.
-
Hi In my application their is a situation where I have to Handle the Back Button of the Browser, I have to either 1.Disable the Back Button for that page or 2.Redirect the current page to LoginPage. How can I do both the ways. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
chand10 wrote:
.Disable the Back Button for that page or
Disabling back button with some scripts is not a good solution. If you don't want user to come back and do changes on previous page, I think you need to disable caching for the first page. But I am not sure with this method
-
What will happen if client has disabled javascript. ? You should not relay on javascript never. Moreover it's not a good solution too.
N a v a n e e t h wrote:
if client has disabled javascript
Stone age web browsers. :mad:
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
chand10 wrote:
.Disable the Back Button for that page or
Disabling back button with some scripts is not a good solution. If you don't want user to come back and do changes on previous page, I think you need to disable caching for the first page. But I am not sure with this method
N a v a n e e t h wrote:
to come back
It is better to look ahead in life rather than turning back. My car always prefer to go further take a U-turn instead of using the reverse gears unless otherwise the road conditions stipulate otherwise. :)
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
N a v a n e e t h wrote:
to come back
It is better to look ahead in life rather than turning back. My car always prefer to go further take a U-turn instead of using the reverse gears unless otherwise the road conditions stipulate otherwise. :)
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
That's fine. Even me also like to do so. I just told a scenario, I know people who still use old browsers. If full application security is depends on javascript , it still sounds bad for me.