473,493 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Blocking f5 and Esc Jey

Is there anyway I can stop user hitting the F5 or Esc key while using my
application. My application is developed in ASP.Net, VB.Net and .Net
Framework 1.1. All my clients are using IE 5.5X and above versions.
Thanks,
Nelson
Nov 18 '05 #1
5 1082
You could take the f5 key off of their keyboard but they could always just
buy a new one. Why do you want to do this?
Nov 18 '05 #2
No. You will have to handle it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Nelson" <Ne*************@hotmail.com> wrote in message
news:uW**************@tk2msftngp13.phx.gbl...
Is there anyway I can stop user hitting the F5 or Esc key while using my
application. My application is developed in ASP.Net, VB.Net and .Net
Framework 1.1. All my clients are using IE 5.5X and above versions.
Thanks,
Nelson

Nov 18 '05 #3
> You could take the f5 key off of their keyboard but they could always just
I was going to suggest hover behind them with a hockey stick and hitting
them whenever they hit the F5 key. They'll learn not to hit the refresh
button sooner or later. :>

But seriously, If you are doing this in a thick client, I believe you can
consume() the keystroke. If you are on a thin client (IE?) then you are not
alone. :< I'm coming from j2ee/jsps and we've had to create some funky
framework around handling this type of thing. It must be a common problem
cause in .net you have the Postback property you can interrogate and do
things if it's a new request or a second+ one. Maybe those help? Hopefully
not the hockey stick, it's too hard to get to all your users! :> haha :>
Good luck.
Nov 18 '05 #4
Dino Esposito posted some code for how to handle a Refresh using an
HTPPModule.
Check his site.
--
Joe Fallon


"Nelson" <Ne*************@hotmail.com> wrote in message
news:uW****************@tk2msftngp13.phx.gbl...
Is there anyway I can stop user hitting the F5 or Esc key while using my
application. My application is developed in ASP.Net, VB.Net and .Net
Framework 1.1. All my clients are using IE 5.5X and above versions.
Thanks,
Nelson

Nov 18 '05 #5
Okay, so what about the other 25 ways to refresh a page?

Allright, I exaggerated. 5 ways.

Bottom line is, attempting to control the client is both futile and
fruitless. It only makes them angry, which ain't so good for business. Look
what happened to the Democrats.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Flip" <[remove]ph******@hotmail.com> wrote in message
news:#P**************@tk2msftngp13.phx.gbl...
You could take the f5 key off of their keyboard but they could always
just I was going to suggest hover behind them with a hockey stick and hitting
them whenever they hit the F5 key. They'll learn not to hit the refresh
button sooner or later. :>

But seriously, If you are doing this in a thick client, I believe you can
consume() the keystroke. If you are on a thin client (IE?) then you are not alone. :< I'm coming from j2ee/jsps and we've had to create some funky
framework around handling this type of thing. It must be a common problem
cause in .net you have the Postback property you can interrogate and do
things if it's a new request or a second+ one. Maybe those help? Hopefully not the hockey stick, it's too hard to get to all your users! :> haha :>
Good luck.

Nov 18 '05 #6

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

Similar topics

1
2014
by: Ryan | last post by:
We have a situation that occurs every so often with blocking of various databases on one server (Win200 SQL7). It appears to happen at random, so I'm assuming it originates from something a user...
1
482
by: Hal | last post by:
I am experiencing blocking problems on SQL Server 2000, SP3a. I have read the posts and set up a job SQL agent to report on these occurences I save the results to a table before executing an sp to...
3
2180
by: David Sworder | last post by:
This message was already cross-posted to C# and ADO.NET, but I forgot to post to this "general" group... sorry about that. It just occured to me after my first post that the "general" group readers...
3
12184
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
7
17374
by: Michi Henning | last post by:
Hi, I'm using a non-blocking connect to connect to a server. Works fine -- the server gets and accepts the connection. However, once the connection is established, I cannot retrieve either the...
3
1737
by: loosecannon_1 | last post by:
I get a 90-120 second blocking when send 15 or so simultaneous queries to SQL Server 2000 that query a view made up of two joined tables. After each query is blocking for the same amount of time...
1
2810
by: opi | last post by:
My blocking TCP server hangs in the Accept method when the client software sometimes gets an error. Are there any ways to stop this blocking in the Accept method so I dont have to restart the...
1
6242
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have an unmanaged C++ project which acts as a TCP client. However, the C++ client uses non-blocking mode and the tcplistener in the C# project is blocking. I am not sure if this matters, but I'm...
3
8302
by: mp | last post by:
Code is at bottom. Basically, if I turn off socket blocking prior to connecting, I get a "Socket is not connected" error when I try to send data. However, if I do not turn off blocking, OR if I...
12
29787
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
7119
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
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
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,...
0
7195
jinu1996
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...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
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...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
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...

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.