2
Answers

Chek Format from textbox

Madiha Khalid

Madiha Khalid

14y
2.3k
1
hi, i want to chek the Format of strings . e.g i have two format  'add $t1,$t5,$t4', 'addi $t1,$t1,20' how do i chek this format from text box when user input in textbox???. either i have to fix the string formats ?? but strng.Format() method are for numeric type what should i have to do for this type of data ??/plz help me in this 

Thanks
Answers (2)
0
Amit Choudhary

Amit Choudhary

NA 27.7k 3m 14y
hi friend,

why don't you use regular expression.. write regular expression and apply and RegualerExpressionValidator on your textbox.
add the regular expression in your validator. and your problem will be solved.


Please mark as "Do you like this post" if it helps you.
Accepted
0
Madiha Khalid

Madiha Khalid

NA 8 11.9k 14y
thanks i wil try this...