Validating listbox


29-Dec-2017 06:55

The zipped file is in xlsm format, so enable macros when you open the file. Now you can ask questions directly to me on my new site ASPForums.

but i want to put required field validator in this case because i want user to put atleast 1 email in the listbox. i m asking this because if i use required field validation in the error msg displays even though i have a item in the list. Now your problem with that is you are selecting that only when you click save so the validation turns error since there were no selected item before postback.

In there are some situations when a web developer needs to validate List Box and Drop Down List using Required Field Validator.

It seems to be little bit tricky and also it avoids the use of Java Script function to validate List Box and Drop Down List .

Insert(0, new List Item("-- Select Item --", "-1")); Hi, Did you mean i should add extra item ---please select--- in my listbox.

validating listbox-74

Camsexfree us

You can write a clientside sciprt validation for that so you don't need to postback everytime just to validate listbox.

Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.



( The Graphire4 pen offers 512 levels of pressure sensitivity, two programmable side-buttons and a pressure-sensitive eraser. A gold or chrome-plated mouse for .98 from Lilian Vernon ( The USB Optical Liquid Mouse with scroll wheel comes with your choice of a floating fish or duck built right into the mouse for .99 from… continue reading »


Read more

They have the most beautiful daughters and their daughters are more open to dating Western men than the Malays and Indians. Some of them are rich, others are not so wealthy.​Dating in Singapore is not hard, but it’s harder than in other parts of South East Asia. But that doesn’t mean that they expect you to buy them stuff.… continue reading »


Read more

When "High School Musical" star Ashley Tisdale married musician Christopher French on September 8, she reportedly had a plan in place to keep the ceremony private. , the couple had guests arrive at a different location before shuttling them over to the wedding's private venue.… continue reading »


Read more