Hi,
I have one dropdownlist in the dropdown items are "USA" and "Canada " my scenerio is
i want to validate one text box postal code if USA means enter 5 digit number , other Canada means enter 4 digits only how to validate my textbox .
Javascript Validation
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sukesh MarlaRank #461 · 5.4K reputationPosted Aug 12, 2012, 8:54 AM EDT
http://www.c-sharpcorner.com/UploadFile/SukeshMarla/Asp-Net-validation-control/
You can also download sample for Custom Validator from the link..
Hope It Helped. Please Check This is Currect Answer.