calvin Posted July 8, 2004 Posted July 8, 2004 Hi, Is anybody know how to make user unable to select the first item in dropdownlist, normally is "Please select..." on top of dropdownlist and how to validate the dropdownlist (Required field validator)if is selected or not. Thanks to all giving comments and suggestion. Calvin :confused: Quote
Moderators Robby Posted July 8, 2004 Moderators Posted July 8, 2004 check the DropDown's index for a zero during validation, you can do this client and server side. Quote Visit...Bassic Software
Arch4ngel Posted July 8, 2004 Posted July 8, 2004 Both are worth what they worth (client and server). It depends how you validate your data. Client is good because it won't need a postback to the server to validate. Maybe what I can suggest... (I really don't know if it work) is to delete the first element at the first selection... is it possible ?????????????????????? didn't work with that since a long time so... I'm a bit rusted Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.