473,406 Members | 2,312 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,406 software developers and data experts.

Backspace and F5

Can I disable or remap these keys in my asp.net website?
Oct 13 '06 #1
5 1526
No.
These are functions of the browser and you cannot reassign them for security
reasons.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Herb" <Ju********@newsgroups.nospamwrote in message
news:F3**********************************@microsof t.com...
Can I disable or remap these keys in my asp.net website?

Oct 13 '06 #2
Hello Herb,

I agree with Steve. The backspace and F5 behavior is completely associated
with client-side webbrowser. HTML page or ASP.NET web page's content or
httpheader has no option to control this behavior. Also, as far as I knew,
browser seems hasn't such key mapping and they're fixed and associated with
certain toolbar button or menu.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 16 '06 #3
OK. If I can't stop the user from using them, how do I detect that they have
been done and write code for them?

"Steven Cheng[MSFT]" wrote:
Hello Herb,

I agree with Steve. The backspace and F5 behavior is completely associated
with client-side webbrowser. HTML page or ASP.NET web page's content or
httpheader has no option to control this behavior. Also, as far as I knew,
browser seems hasn't such key mapping and they're fixed and associated with
certain toolbar button or menu.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 16 '06 #4
Well you could detect a page refresh using the technique outlined here:
http://jarednevans.typepad.com/techn..._techno_b.html

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Herb" <Ju********@newsgroups.nospamwrote in message
news:81**********************************@microsof t.com...
OK. If I can't stop the user from using them, how do I detect that they
have
been done and write code for them?

"Steven Cheng[MSFT]" wrote:
>Hello Herb,

I agree with Steve. The backspace and F5 behavior is completely
associated
with client-side webbrowser. HTML page or ASP.NET web page's content or
httpheader has no option to control this behavior. Also, as far as I
knew,
browser seems hasn't such key mapping and they're fixed and associated
with
certain toolbar button or menu.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.


Oct 16 '06 #5
The links on the page are broken, but I get the concept from the article.
Thanks for the help.

"Steve C. Orr [MVP, MCSD]" wrote:
Well you could detect a page refresh using the technique outlined here:
http://jarednevans.typepad.com/techn..._techno_b.html

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Herb" <Ju********@newsgroups.nospamwrote in message
news:81**********************************@microsof t.com...
OK. If I can't stop the user from using them, how do I detect that they
have
been done and write code for them?

"Steven Cheng[MSFT]" wrote:
Hello Herb,

I agree with Steve. The backspace and F5 behavior is completely
associated
with client-side webbrowser. HTML page or ASP.NET web page's content or
httpheader has no option to control this behavior. Also, as far as I
knew,
browser seems hasn't such key mapping and they're fixed and associated
with
certain toolbar button or menu.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.



Oct 16 '06 #6

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

Similar topics

3
by: Dennis Craven | last post by:
Hello, Does anyone know how one could insert a backspace into a widget such as a TextView/Buffer in Pygtk? Whenever I try something like insert(iter, '\b') I get jibberish inserted into the...
1
by: haxmya | last post by:
Ok, made an explorer toolbar (band Object) with a textbox on it. Everything works great....except that the backspace button doesn't actually backspace when you're in the textbox. Shift-backspace...
6
by: Robert Nurse | last post by:
Hi, Is it at all possible to capture and suppress the backspace key when focus is not on a form edit control? Basically, while the page is loading I don't want the user pressing the backspace...
17
by: Julia Briggs | last post by:
Are there any gotchas using if (event.keyCode==8)? I understand that to represent backspace, but it doesn't work. I am running Windows XP, using a typical keyboard - but no luck in detecting...
3
by: Dave Christian | last post by:
What event gets fire off? I thought it might be an onLoad event, but that doesn't seem to be the case. (I have some variables displayed on my page that, upon a Backspace (or even hitting the...
9
by: Toralf Kirsten | last post by:
Hi, we installed db2 v8.1 on red hat linux 9. Unfortunately, the backspace and the delete button doesn't work in the right way. Instead of deleting chars, control characters are inputed. That...
44
by: G Patel | last post by:
Hi, I would like to write a program that checks to see if the user has hit backspace (so the program can go back to a previous stage). How would I test for this? I tried if( (c =...
3
by: Mike L | last post by:
In a text box I want to allow only numbers and backspace. Currently the code I have only allows numbers. How do I also allow backspace? if (!Char.IsDigit(e.KeyChar)) { e.Handled = true; }
1
by: Blue | last post by:
This JS limits the input characters into the form. How do I modify it so that it also allows CARRIAGE RETURN and BACKSPACE (for making text correction)? Due to the template engine I am using, I...
1
by: kj | last post by:
If I'm in the python interactive interpreter, I get a beep when I hit the backspace key. I must confess, though, that my terminal is "complicated", to put it mildly: I work on a Mac running...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.