validation problems

James

Well-known member
Joined
Oct 3, 2002
Messages
78
I am trying to validate web controls by using the RequiredFieldValidator. I have a dropdown that displays values. When a value is selected, the form make a panel that is associated with the selected value visible and make other panels invisible. If I dont type text in a required textbox my validation code catches it. However, my dropdown box no longer works after I correct the validation error. Can someone help me?

James
 
Ok, I fixed the problem. I had to set the autopostback=true on the textboxes that are being validated. I dont know why my book (ASP.NET Unleashed) didnt explain this. I dont know if this is the correct way since I was guessing that the autopostback=true would work. If there is a better way please post.

James
 
Back
Top