ZeroShade Posted July 5, 2007 Share Posted July 5, 2007 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 More sharing options...
jesh Posted July 5, 2007 Share Posted July 5, 2007 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 More sharing options...
ZeroShade Posted July 6, 2007 Author Share Posted July 6, 2007 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 More sharing options...
ZeroShade Posted July 6, 2007 Author Share Posted July 6, 2007 Nevermind... figured it out. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.