Click here to Skip to main content
16,006,452 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: detecting cross[close] button of browser Pin
248912813-Dec-06 1:48
248912813-Dec-06 1:48 
AnswerRe: detecting cross[close] button of browser Pin
Guffa13-Dec-06 0:32
Guffa13-Dec-06 0:32 
GeneralRe: detecting cross[close] button of browser Pin
248912813-Dec-06 0:51
248912813-Dec-06 0:51 
AnswerRe: detecting cross[close] button of browser Pin
Guffa13-Dec-06 1:07
Guffa13-Dec-06 1:07 
QuestionHow defind 1 field as number ??? Pin
Golden01212-Dec-06 22:46
Golden01212-Dec-06 22:46 
AnswerRe: How defind 1 field as number ??? Pin
Kschuler13-Dec-06 6:16
Kschuler13-Dec-06 6:16 
GeneralRe: How defind 1 field as number ??? Pin
Golden01215-Dec-06 14:50
Golden01215-Dec-06 14:50 
GeneralRe: How defind 1 field as number ??? Pin
Kschuler18-Dec-06 2:54
Kschuler18-Dec-06 2:54 
This is what the html side should look like for a vb application that uses the javascript I gave you:
<asp:TextBox ID="txtMyTextbox" runat="server" onkeypress="if ((event.keyCode < 48 || event.keyCode > 57) & event.keyCode != 13) event.returnValue = false;"></asp:TextBox>

I don't know if this is how it will need to be for you. Basically the javascript checks to see if the user has pressed certain keys and if it returns false the onkeypress event will not execute therefore the letter/number will not be entered in the textbox. This part of the code is the basic javascript:
if ((event.keyCode < 48 || event.keyCode > 57) & event.keyCode != 13) event.returnValue = false;
But I only know how to tie the javascript to the textbox's keypress event in VB.Net. You'll have to lookup how to do it otherwise.
Good luck.
Questionhow to send mail in asp.net? Pin
araja_pandian12-Dec-06 20:51
araja_pandian12-Dec-06 20:51 
AnswerRe: how to send mail in asp.net? Pin
Bradml12-Dec-06 22:04
Bradml12-Dec-06 22:04 
GeneralRe: how to send mail in asp.net? Pin
RichardGrimmer14-Dec-06 5:32
RichardGrimmer14-Dec-06 5:32 
AnswerRe: how to send mail in asp.net? Pin
Vasudevan Deepak Kumar13-Dec-06 20:02
Vasudevan Deepak Kumar13-Dec-06 20:02 
Questionasp.net dropdownlist Pin
hhems12-Dec-06 19:49
hhems12-Dec-06 19:49 
AnswerRe: asp.net dropdownlist Pin
Bradml12-Dec-06 20:01
Bradml12-Dec-06 20:01 
AnswerRe: asp.net dropdownlist Pin
RichardGrimmer14-Dec-06 5:33
RichardGrimmer14-Dec-06 5:33 
QuestionHow to creat register form ? Pin
Golden01212-Dec-06 17:45
Golden01212-Dec-06 17:45 
AnswerRe: How to creat register form ? Pin
Bradml12-Dec-06 19:13
Bradml12-Dec-06 19:13 
GeneralRe: How to creat register form ? Pin
Golden01212-Dec-06 21:35
Golden01212-Dec-06 21:35 
GeneralRe: How to creat register form ? Pin
Bradml12-Dec-06 21:49
Bradml12-Dec-06 21:49 
GeneralRe: How to creat register form ? Pin
Golden01212-Dec-06 23:01
Golden01212-Dec-06 23:01 
GeneralRe: How to creat register form ? [modified] Pin
Bradml13-Dec-06 0:26
Bradml13-Dec-06 0:26 
GeneralRe: How to creat register form ? Pin
Golden01215-Dec-06 15:36
Golden01215-Dec-06 15:36 
GeneralRe: How to creat register form ? Pin
Bradml16-Dec-06 0:13
Bradml16-Dec-06 0:13 
GeneralRe: How to creat register form ? Pin
JimmyRopes16-Dec-06 21:42
professionalJimmyRopes16-Dec-06 21:42 
QuestionCut through the Ajax hype Pin
solrac8112-Dec-06 9:02
solrac8112-Dec-06 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.