Click here to Skip to main content
15,921,577 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Help with a Message box Pin
Michael Sync28-Aug-07 23:32
Michael Sync28-Aug-07 23:32 
Questionvalidations Pin
bhattiprolu28-Aug-07 22:56
bhattiprolu28-Aug-07 22:56 
AnswerRe: validations Pin
Paramhans Dubey29-Aug-07 0:36
professionalParamhans Dubey29-Aug-07 0:36 
GeneralRe: validations Pin
bhattiprolu29-Aug-07 1:08
bhattiprolu29-Aug-07 1:08 
QuestionPassing client side value to server side.......... Pin
aquarious202028-Aug-07 22:37
aquarious202028-Aug-07 22:37 
AnswerRe: Passing client side value to server side.......... Pin
Michael Sync28-Aug-07 23:24
Michael Sync28-Aug-07 23:24 
QuestionHelp Pin
musnet200728-Aug-07 22:34
musnet200728-Aug-07 22:34 
AnswerRe: Help Pin
Michael Sync28-Aug-07 23:22
Michael Sync28-Aug-07 23:22 
You should google a lit bit...

function getKeyCode(e)<br />
{<br />
 if (window.event)<br />
    return window.event.keyCode;<br />
 else if (e)<br />
    return e.which;<br />
 else<br />
    return null;<br />
}<br />
<br />
function keyRestrict(e, validchars) {<br />
 var key='', keychar='';<br />
 key = getKeyCode(e);<br />
 if (key == null) return true;<br />
 keychar = String.fromCharCode(key);<br />
 keychar = keychar.toLowerCase();<br />
 validchars = validchars.toLowerCase();<br />
 if (validchars.indexOf(keychar) != -1)<br />
  return true;<br />
 if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 )<br />
  return true;<br />
 return false;<br />
}


<input type="text" name="textfield" onKeyPress="return keyRestrict(event,'1234567890')">


Thanks to this "http://www.codeproject.com/useritems/keyboard_restrict_spanish.asp[^]"



https://www.aspnetpro.net/newsletterarticle/2004/01/asp200401de_l/asp200401de_l.asp

more

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

AnswerRe: Help Pin
John-ph28-Aug-07 23:24
John-ph28-Aug-07 23:24 
AnswerRe: Help Pin
Sathesh Sakthivel28-Aug-07 23:44
Sathesh Sakthivel28-Aug-07 23:44 
QuestionBlocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
H.R28-Aug-07 22:20
H.R28-Aug-07 22:20 
AnswerRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
Michael Sync28-Aug-07 22:32
Michael Sync28-Aug-07 22:32 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web [modified] Pin
H.R28-Aug-07 22:54
H.R28-Aug-07 22:54 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
Michael Sync28-Aug-07 23:06
Michael Sync28-Aug-07 23:06 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
H.R28-Aug-07 23:32
H.R28-Aug-07 23:32 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
Michael Sync28-Aug-07 23:46
Michael Sync28-Aug-07 23:46 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web [modified] Pin
H.R29-Aug-07 0:00
H.R29-Aug-07 0:00 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
Vasudevan Deepak Kumar29-Aug-07 1:42
Vasudevan Deepak Kumar29-Aug-07 1:42 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
Vasudevan Deepak Kumar29-Aug-07 1:44
Vasudevan Deepak Kumar29-Aug-07 1:44 
AnswerRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
Paddy Boyd28-Aug-07 23:34
Paddy Boyd28-Aug-07 23:34 
GeneralRe: Blocking client's resources(MyComputer,...) from server, to e-exam by the web Pin
H.R29-Aug-07 0:21
H.R29-Aug-07 0:21 
QuestionAjax and open image in a inline popup Pin
Tridip Bhattacharjee28-Aug-07 22:09
professionalTridip Bhattacharjee28-Aug-07 22:09 
AnswerRe: Ajax and open image in a inline popup Pin
Michael Sync28-Aug-07 22:31
Michael Sync28-Aug-07 22:31 
Questioncrystal Reports Pin
Sonia Gupta28-Aug-07 21:55
Sonia Gupta28-Aug-07 21:55 
QuestionHow to restrict the entry of a variables and special characters in a HTML textbox. using Java Script..? Pin
Balagurunathan S28-Aug-07 21:51
Balagurunathan S28-Aug-07 21:51 

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.