asp.net 1.1
ie 6
how to lock-out the user from clicking the browser "Back" button ? 11 2696
Not possible.
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. asp.net 1.1 ie 6
how to lock-out the user from clicking the browser "Back" button ?
Scott M. < No****@NoSpam.c om > wrote: Not possible. "John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. asp.net 1.1 ie 6 how to lock-out the user from clicking the browser "Back" button ?
It is possible, with javascript, but you cannot depend on it working (user
can disable js, may not have it, etc.). Google "disable back javascript"
It is NOT possible with ASP.NET and (as you point out) it is not reliable in
client-side code either.
"Jeff Evans" <jwevans1@you_e ye_you_see.edu> wrote in message
news:Or******** ******@tk2msftn gp13.phx.gbl... Scott M. < No****@NoSpam.c om > wrote: Not possible. "John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. asp.net 1.1 ie 6 how to lock-out the user from clicking the browser "Back" button ?
It is possible, with javascript, but you cannot depend on it working (user can disable js, may not have it, etc.). Google "disable back javascript"
Its not possible to do that in asp.net. If your requirement is that user
shouldnt see the cached page by clicking back button, then check out this
faq http://www.extremeexperts.com/Net/FA...ackButton.aspx
--
Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Scott M." <No****@NoSpam. com> wrote in message
news:u1******** ******@TK2MSFTN GP11.phx.gbl... It is NOT possible with ASP.NET and (as you point out) it is not reliable
in client-side code either.
"Jeff Evans" <jwevans1@you_e ye_you_see.edu> wrote in message news:Or******** ******@tk2msftn gp13.phx.gbl... Scott M. < No****@NoSpam.c om > wrote: Not possible. "John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. asp.net 1.1 ie 6 how to lock-out the user from clicking the browser "Back" button ?
It is possible, with javascript, but you cannot depend on it working
(user can disable js, may not have it, etc.). Google "disable back
javascript"
Yeah u could also use javascript..but that WILL not allow the user to
click the back button on the BROWSER!
But if its NOT to see the cached page then Saravana's solution should
WORK
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi Saravana.
In regards to "disabling the IE Back button" in my ASP.NET application ...
My objective is to prevent the user from seeing any of the pages previously
visited in my application -- so removing them from the cache sounds like the
correct solution.
I assume with your solution, the "Back" button stays visible on the browser?
What happens if the user clicks it? I'd prefer that the current page remain
shown.
Response.Buffer = True
Response.Expire sAbsolute = Now().Subtract( New TimeSpan(1, 0, 0, 0))
Response.Expire s = 0
Response.CacheC ontrol = "no-cache"
Where to locate the above code? Does it have to be placed in every page?
Such as in the OnPreRender event ?
Or is there a way to implement this technique globally for my entire asp.net
application ?
Thanks.
John.
--------------
you wrote:
"Saravana" <sa******@sct.c o.inwrote in message
news:Ml******** *********@news. cpqcorp.net...
Its not possible to do that in asp.net. If your requirement is that user
shouldnt see the cached page by clicking back button, then check out this
faq http://www.extremeexperts.com/Net/FA...ackButton.aspx
-- http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Saravana" <sa******@sct.c o.in> wrote in message
news:Ml******** *********@news. cpqcorp.net... Its not possible to do that in asp.net. If your requirement is that user shouldnt see the cached page by clicking back button, then check out this faq http://www.extremeexperts.com/Net/FA...ackButton.aspx
-- Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Scott M." <No****@NoSpam. com> wrote in message news:u1******** ******@TK2MSFTN GP11.phx.gbl... It is NOT possible with ASP.NET and (as you point out) it is not reliable in client-side code either.
"Jeff Evans" <jwevans1@you_e ye_you_see.edu> wrote in message news:Or******** ******@tk2msftn gp13.phx.gbl... > Scott M. < No****@NoSpam.c om > wrote: >> Not possible. >> "John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message >> news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. >>> asp.net 1.1 >>> ie 6 >>> how to lock-out the user from clicking the browser "Back" button ? > > It is possible, with javascript, but you cannot depend on it working (user > can disable js, may not have it, etc.). Google "disable back javascript" >
Try putting it in your code Behind..
Hope that helps..
Patrik
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
yes, i know that it belongs in the "code-behind" (more properly the class
associated with the web-form) .... but i am attempting to locate the code in
a single location and have it apply to all pages in my application
"Patrick Olurotimi Ige" <pa*********@cr azyjohns.com.au > wrote in message
news:e9******** ******@TK2MSFTN GP09.phx.gbl... Try putting it in your code Behind.. Hope that helps.. Patrik *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Back button will be visible only if go with this approach. Advantage in this
method is, you can restrict the user from viewing cached page. You need to
place the code in each page. If you want you write handler for this stuff,
so you no need to put it in every page.
--
Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:u$******** ******@tk2msftn gp13.phx.gbl... Hi Saravana.
In regards to "disabling the IE Back button" in my ASP.NET application ...
My objective is to prevent the user from seeing any of the pages
previously visited in my application -- so removing them from the cache sounds like
the correct solution.
I assume with your solution, the "Back" button stays visible on the
browser? What happens if the user clicks it? I'd prefer that the current page
remain shown.
Response.Buffer = True Response.Expire sAbsolute = Now().Subtract( New TimeSpan(1, 0, 0, 0)) Response.Expire s = 0 Response.CacheC ontrol = "no-cache"
Where to locate the above code? Does it have to be placed in every page? Such as in the OnPreRender event ?
Or is there a way to implement this technique globally for my entire
asp.net application ?
Thanks. John. --------------
you wrote:
"Saravana" <sa******@sct.c o.inwrote in message news:Ml******** *********@news. cpqcorp.net... Its not possible to do that in asp.net. If your requirement is that user shouldnt see the cached page by clicking back button, then check out this faq http://www.extremeexperts.com/Net/FA...ackButton.aspx -- http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com "Saravana" <sa******@sct.c o.in> wrote in message news:Ml******** *********@news. cpqcorp.net... Its not possible to do that in asp.net. If your requirement is that user shouldnt see the cached page by clicking back button, then check out
this faq http://www.extremeexperts.com/Net/FA...ackButton.aspx
-- Saravana http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Scott M." <No****@NoSpam. com> wrote in message news:u1******** ******@TK2MSFTN GP11.phx.gbl... It is NOT possible with ASP.NET and (as you point out) it is not
reliable in client-side code either.
"Jeff Evans" <jwevans1@you_e ye_you_see.edu> wrote in message news:Or******** ******@tk2msftn gp13.phx.gbl... > Scott M. < No****@NoSpam.c om > wrote: >> Not possible. >> "John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message >> news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. >>> asp.net 1.1 >>> ie 6 >>> how to lock-out the user from clicking the browser "Back" button ? > > It is possible, with javascript, but you cannot depend on it working (user > can disable js, may not have it, etc.). Google "disable back javascript" >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Felix Natter |
last post by:
hi,
I would like to lock a record so that when one user is modifying a
particular record, then it is locked for all other users. For this
purpose, I have two fields in every table ("LockedBy int null", which
contains the UserID of the editing user and "LockedSince int not
null", a timestamp).
My current logic is: when the user enters the form to modify a record,
lock it (set LockedBy=$UserID). when the user presses the submit-button
|
by: Ralph Freshour |
last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP?
Thanks...
|
by: B.r.K.o.N.j.A. |
last post by:
I've made a script for managing shoppingcart (something like
cart.php?action=add&item=12345) and it works fine, the problem is: when user
hits the back button page after he added something in the cart, the add cart
script is rerun and he ends up with having 2 of the same item. Is there a
way to prevent script from running when accessed via back button?
Thanks
Brko
|
by: Phil |
last post by:
Hello
I have a strange behaviour.
I have a datagrid, with articles that have to be produced today or the
day after. In this program one can see the articles, that have already
been planned (just for control). Now it can be, that the planner has
realised that he planned something wrong for this article. So he has
the possiblity to lock it with a button called "lock", which changes a
status in the Database. When he has changed his plan,...
|
by: Hunzian |
last post by:
HI ALL..
WELL I GOT A LITTLE TRICKY PROBLEM ....
THE PROBLEM IS ...
WHEN I SIGNOUT USING THE BUTTON(FORMSAUTHENTICATION.SIGNOUT());
RESPONSE.REDIRECT("LOGIN.ASPX")...IT REDIRECTS ME TO LOGIN.ASPX...THATS
FINE........BUT WHEN I CLICK THE BACK BUTTON OF IE IT AGAIN REDIRECTS ME
TO WHERE I WAS BEFORE......I DON'T WANT TO GO BACK WHEN I CLICK THE BACK
BUTTON OF IE ....
| |
by: Ami |
last post by:
Hello everyone,
I have developed a small access application and now I need to lock my
forms against unwanted edits.
I have used the code by Allen Browne I found here
http://allenbrowne.com/ser-56.html
and it works great, but I need to unlock and lock my main form and
subform separately, using two different buttons.
|
by: Chris Dunaway |
last post by:
I have a main form with a "lock" button. When the lock button is
clicked, another form is shown using ShowDialog(this). The user must
enter their PIN on this form to close it and resume the main app.
Because it is showing using ShowDialog(this), the main form in the back
cannot be used until the user clears the login form. A feature was
added to the app to automatically lock the app after a period of
inactivity. This uses a timer. If...
|
by: deoraj |
last post by:
Hi everyone,
Can anyone tell me how to lock / deactivate "Refresh" and "Back" button on browser.
Problem is in voting application. Once we click for a vote application goes to next page and increament one vote in the database. But when we click on "Refresh" button on the browser, the query is fired again and again one vote is added un-necessarily..Only one vote should be posted from each pc / user.
Same thing is with "Back" button on...
|
by: marss |
last post by:
Hi,
How can I define in Firefox whether the left mouse button is pressed
when I move mouse over a html element?
The documentation says that "e.button == 0 for standard 'click',
usually left button"
http://developer.mozilla.org/en/docs/DOM:event.button
Tracing of mouse clicks or mousedown/mouseup events looks not
reliable, because mouse can be pressed elsewhere out of the html
element (even outside of the browser) and then move over the...
|
by: Heinrich Wolf |
last post by:
Hi all
I have a history.back() problem with FF(2). IE works as expected, while FF
does not. The multi frame website setup as a whole with a lot of frame
content switching works flawlessly in both browsers. In one situation and
frame I have a long scrollable list of cars offered for sale. Some list
lines are linked to a separate page with images, to be loaded into the
same frame as the listing.
On closing this image page with <a...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |