textbox validation very urgent
-
hi! i want to create the following textboxes.. please help me.. 1.one textbox contains numeric values only. 2.one contains characters only. 3.one contains EmailId. 4.one contains phone no 5.one contains pincode. 6.one contains fax no. 7. one contains mobile no. 8. one contains fax no. how to validate this?
-
hi! i want to create the following textboxes.. please help me.. 1.one textbox contains numeric values only. 2.one contains characters only. 3.one contains EmailId. 4.one contains phone no 5.one contains pincode. 6.one contains fax no. 7. one contains mobile no. 8. one contains fax no. how to validate this?
-
hi! i want to create the following textboxes.. please help me.. 1.one textbox contains numeric values only. 2.one contains characters only. 3.one contains EmailId. 4.one contains phone no 5.one contains pincode. 6.one contains fax no. 7. one contains mobile no. 8. one contains fax no. how to validate this?
Check if this helps u, Following code snippet is an example for validation of textbox. similar way compare values with different ascii numbers i.e. for only characters, numeric values...etc.. //VALIDATION FOR TELEPHONE NUMBER bool valid5 = false; char[] name5=new char[20]; name5=textBox27.Text.ToCharArray(); int leng5=textBox27.Text.Length ; for(int i=0 ; i < leng5 ; i++ ) { if( ((Convert.ToInt32(name5[i])>='0')&&(Convert.ToInt32(name5[i])<='9'))||(Convert.ToInt32(name21[i])==32)) { valid5=true; } else { MessageBox.Show("TELEPHONE NUMBER: Enter the valid Telephone Number"); textBox27.Focus(); return; } }
-
hi! i want to create the following textboxes.. please help me.. 1.one textbox contains numeric values only. 2.one contains characters only. 3.one contains EmailId. 4.one contains phone no 5.one contains pincode. 6.one contains fax no. 7. one contains mobile no. 8. one contains fax no. how to validate this?
Use a Validator with regular expression. there are lots of examples on the web.
Grady Booch: I told Google to their face...what you need is some serious adult supervision. (2007 Turing lecture) http:\\www.frankkerrigan.com
-
Use a Validator with regular expression. there are lots of examples on the web.
Grady Booch: I told Google to their face...what you need is some serious adult supervision. (2007 Turing lecture) http:\\www.frankkerrigan.com
-
I would like to check if user has entered ALT+10 or à , ä (UMALUT) or any english alphabets The code sample in previous thread by 'sharmit' did not work for me. Can you please point me the websites where I can find code sample for the same.
Sandeep Naik
I want to basically check if user has entered any control characters like 1-32 or 127 ASCII value (Ex: ALT + 127) in the edit box. And discard the same. FYI this edit box should allow any other non english characters like French, German, Chinese, Japanese etc
Sandeep Naik