473,387 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

BACK button IE

I have implemented an Admin Application in ASP.NET.
There is a requirement for me not to browse back to a page with the back button on internet explorer.

I want to flush the session variables so that if a uses clicks on back button the page should re-direct to an user defined error page. - mentioning not to use the back button for navigation.

How do I do that. Is there a way I can catch if the user has clicked the back button.

Thanks!!!
Yogesh Kadalgikar
Nov 19 '05 #1
3 1443

If you can not control browser the only solution is to make it impossible
for user to return back. You can add session variable that define old page
url and new page url and store it to SESSION object. And if some page
detects those urls matching their own url - use Response.Redirect method to
send use to an error page.

"Yogesh Kadalgikar" <yo******@gmail.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I have implemented an Admin Application in ASP.NET.
There is a requirement for me not to browse back to a page with the back
button on internet explorer.

I want to flush the session variables so that if a uses clicks on back
button the page should re-direct to an user defined error page. - mentioning
not to use the back button for navigation.

How do I do that. Is there a way I can catch if the user has clicked the
back button.

Thanks!!!
Yogesh Kadalgikar
Nov 19 '05 #2
Thanks!!!

What if we have AutoPost event set true to some server controls in the page.
The page will be reloaded and the Session variable will be evaluated to the
same value.
I think this will create a problem.

What do you think?

Regards,
Yogesh
"gaidar" <ga****@vbstreets.ru> wrote in message
news:Oy**************@TK2MSFTNGP14.phx.gbl...

If you can not control browser the only solution is to make it impossible
for user to return back. You can add session variable that define old page
url and new page url and store it to SESSION object. And if some page
detects those urls matching their own url - use Response.Redirect method to send use to an error page.

"Yogesh Kadalgikar" <yo******@gmail.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I have implemented an Admin Application in ASP.NET.
There is a requirement for me not to browse back to a page with the back
button on internet explorer.

I want to flush the session variables so that if a uses clicks on back
button the page should re-direct to an user defined error page. - mentioning not to use the back button for navigation.

How do I do that. Is there a way I can catch if the user has clicked the
back button.

Thanks!!!
Yogesh Kadalgikar

Nov 19 '05 #3
You can keep a variable in the SessionState containing the ID of the current
Page.
when your application redirects to a different page updates the ID of the
current Page and passes it to the new page in the QueryString.
This way you don't have to keep a list of ALL old urls, only 1 ID of the
current page.

Nadav

Nadav
"Yogesh K." wrote:
Thanks!!!

What if we have AutoPost event set true to some server controls in the page.
The page will be reloaded and the Session variable will be evaluated to the
same value.
I think this will create a problem.

What do you think?

Regards,
Yogesh
"gaidar" <ga****@vbstreets.ru> wrote in message
news:Oy**************@TK2MSFTNGP14.phx.gbl...

If you can not control browser the only solution is to make it impossible
for user to return back. You can add session variable that define old page
url and new page url and store it to SESSION object. And if some page
detects those urls matching their own url - use Response.Redirect method

to
send use to an error page.

"Yogesh Kadalgikar" <yo******@gmail.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
I have implemented an Admin Application in ASP.NET.
There is a requirement for me not to browse back to a page with the back
button on internet explorer.

I want to flush the session variables so that if a uses clicks on back
button the page should re-direct to an user defined error page. -

mentioning
not to use the back button for navigation.

How do I do that. Is there a way I can catch if the user has clicked the
back button.

Thanks!!!
Yogesh Kadalgikar


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
6
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. ...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
6
by: tshad | last post by:
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.