validate string for special characters
-
in a textbox when user enter some input after that i want to check wether user enter only alphanumeric values or any special char like *&$@!":. if user does i will inform the user that input string is not valid my question is how i will find out that user has entered special char. reply soon
-
in a textbox when user enter some input after that i want to check wether user enter only alphanumeric values or any special char like *&$@!":. if user does i will inform the user that input string is not valid my question is how i will find out that user has entered special char. reply soon
-
so for all special char i have to check seprately. is there is any method to check all of them at once or user would be not able to enter special char thanks
Use a regular expression
only two letters away from being an asset
-
so for all special char i have to check seprately. is there is any method to check all of them at once or user would be not able to enter special char thanks
Override the text box and overrid the following method protected override bool ProcessKeyMessage(ref Message m); There are other ways as well but this one is fairly simple.
A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane