See ,I have drop down control and i have keep the LIST as datasource. But if list is null Then it throw null exception. So what is the standard way to handle this situation?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Bind the list to the dropdown after checking whether the list is
nullor not.Note: ObjType is the type of list items that you are using in the dropdown, for example
string, if the list that you are using is a list of strings.Thanks