How to check whether Dropdown-list contains any items or not?

 Posted by vishalneeraj-24503 on 12/26/2013 | Category: ASP.NET Interview questions | Views: 2337 | Points: 40

With the help of Dropdonelist Items Count property we can check whether Dropdown-list have any items or not?

For Example:-

int count = ddl_employee_name.Items.Count;

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response