Matar Posted May 29, 2006 Share Posted May 29, 2006 hi i need a code to check if the text box value just letters ,so the user should be enter letters , icheck it for number value and null value but i can't prevent it from acespting the (!@#$%^&*()_=+*") how ?? Link to comment Share on other sites More sharing options...
netcracker Posted May 30, 2006 Share Posted May 30, 2006 you might find useful the VB function "replace"have an external .vb file with a function like this: function fixit (theString) fixit = replace (theString, "@", "-") fixit = replace (theString, "!", "-") fixit = replace (theString, "%", "-") fixit = replace (theString, "$", "-") (... so on ...)end function and when you take the values, filter them through that function. variable = fixit (trim(request("variable"))) Link to comment Share on other sites More sharing options...
pulpfiction Posted May 30, 2006 Share Posted May 30, 2006 Matar,I guess you want to check if the textbox value is ONLY alphabet and no symbols or numbers. you can do this with regexRegex in ASPhttp://authors.aspalliance.com/brettb/VBSc...Expressions.aspRegex for only alphabets -- "[a-zA-Z]" Link to comment Share on other sites More sharing options...
Matar Posted May 31, 2006 Author Share Posted May 31, 2006 Thanks all ,its realy useful regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now