C# Programming
09-18-2009, 03:31 AM
Hi All,
In my text box i need to allow alphanumerics and some special characters. Below is the code i used in Regular expression valiadator -it works perfectly fine.
"^[0-9a-zA-Z,@&_.-]+$"
I need to allow spaces in textbox. so can anyone please help me how to add it. I tried to add a space in the above existing validation but throws an error. Help required in this. Thanks in advance.
Thanks,
Santa.
In my text box i need to allow alphanumerics and some special characters. Below is the code i used in Regular expression valiadator -it works perfectly fine.
"^[0-9a-zA-Z,@&_.-]+$"
I need to allow spaces in textbox. so can anyone please help me how to add it. I tried to add a space in the above existing validation but throws an error. Help required in this. Thanks in advance.
Thanks,
Santa.