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.
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.