•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,899 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,583 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 3949 | Replies: 3
![]() |
•
•
Join Date: Dec 2005
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all
i use a small java script in an aspx page by using something like this window.history.forward(1) [http://www.daniweb.com/techtalkforums/thread35732.html] to inactive backspace, then i may be sure about some user error in data entry, but sometime its needed the user allowed uses backspace and sees the previous page, i wish there is a programmatically way to do it , i prefer VBS but JS is ok as well. any suggestion , or comment can be useful, thnx
BR
SASTWHC
i use a small java script in an aspx page by using something like this window.history.forward(1) [http://www.daniweb.com/techtalkforums/thread35732.html] to inactive backspace, then i may be sure about some user error in data entry, but sometime its needed the user allowed uses backspace and sees the previous page, i wish there is a programmatically way to do it , i prefer VBS but JS is ok as well. any suggestion , or comment can be useful, thnx
BR
SASTWHC
•
•
Join Date: Jan 2006
Location: Its the internet... i am everywhere lol
Posts: 274
Reputation:
Rep Power: 3
Solved Threads: 10
•
•
Join Date: Dec 2005
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Hi
At 1st,i have to say thank you for attention, i am sorry, I think its not a clear question ,i disable the backspace in a .aspx page, but i need to active it again by using some codes in a button body, then the user can click on the button, instead of using backspace key that may use backspace accidentally, in other words he wants and is sure needs to be back in pages and its not a simpatico usual using bkspace, then the users' error to submit a filled form in this way may occurred less than often, in fact my goal is avoid submit a filled form more than one time by inactive bkspace except some times its needed that would bkspace allowed thru a coded Button not bkspace icon/key.
At 1st,i have to say thank you for attention, i am sorry, I think its not a clear question ,i disable the backspace in a .aspx page, but i need to active it again by using some codes in a button body, then the user can click on the button, instead of using backspace key that may use backspace accidentally, in other words he wants and is sure needs to be back in pages and its not a simpatico usual using bkspace, then the users' error to submit a filled form in this way may occurred less than often, in fact my goal is avoid submit a filled form more than one time by inactive bkspace except some times its needed that would bkspace allowed thru a coded Button not bkspace icon/key.
•
•
Join Date: Jan 2006
Location: Its the internet... i am everywhere lol
Posts: 274
Reputation:
Rep Power: 3
Solved Threads: 10
i think i am clear now
you disable the key normally but when you have a field they need to fill in you want to enable it again? I would add two events to each textbox client side. The first is on enter call your javascript function you have but this time enable the key. The second would be on leave to call the javascript function you have that disables the key. That way you know it is only active for that textbox and you wont have to worry about other problems. You should be able to use the script you have already so i wont post one here.
The downside is you have to do it for each textbox, but it does give you more control (for example you wouldnt want to enable it on the form or it may go back when they are not in a textbox and hit the backspace key).
Hope it helps. Let me know if you need anything more
you disable the key normally but when you have a field they need to fill in you want to enable it again? I would add two events to each textbox client side. The first is on enter call your javascript function you have but this time enable the key. The second would be on leave to call the javascript function you have that disables the key. That way you know it is only active for that textbox and you wont have to worry about other problems. You should be able to use the script you have already so i wont post one here. The downside is you have to do it for each textbox, but it does give you more control (for example you wouldnt want to enable it on the form or it may go back when they are not in a textbox and hit the backspace key).
Hope it helps. Let me know if you need anything more
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Clean Previous Next Script for MySQL results (PHP)
- How to expire previous page (ASP.NET)
- Get submitted values when navigating back with browser back button (ASP.NET)
- how to get pass url variables from one page to another page with out knowing them? (ColdFusion)
Other Threads in the ASP.NET Forum
- Previous Thread: Docking in panel
- Next Thread: ??? ASP.NET vs. Outlook Calendar ???


Linear Mode