Jump to content

Required Field Validator DropDownList


ZeroShade

Recommended Posts

If for some reason the drop down list is empty meaning there are no values in it... how can I use a required field validator to validate if it is empty or not and if it isn't don't have the button insert data. I can't seem to get it to work... I figured it would be relatively the same as using it with a text box but I suppose I was wrong.

Link to comment
Share on other sites

I have two questions for you:1) Is this for an ASP.NET page or a Classic ASP page?2) When you say that the drop down list is empty, do you mean that it hasn't been populated by the server? It hasn't been populated by some client-side mechanism (i.e. javascript)? Or do you mean that the user hasn't selected a value?

Link to comment
Share on other sites

Yes it is an asp.net page. And yes, it hasn't been populated by the server because I have it set up that the user can delete from the server so if there are no entries and then that same drop down list is linked to another form to submit other information it will do funny things because I can't seem to validate the drop down list.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...