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
Chek Format from textbox
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 30, 2010, 11:23 AM EDT
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.
Madiha Khalid8 reputationPosted Apr 30, 2010, 11:28 AM EDT