What is the difference between ListBox (Filled with data) and DropDownList (Filled with data), in terms of SelectedIndex property?

 Posted by Virendradugar on 11/2/2009 | Category: ASP.NET Interview questions | Views: 4688

The default value of the SelectedIndex property of the Listbox is -1, which indicates that no item is selected in the Listbox. However, the DropDownList control overrides this property and sets the default value to 0, which indicates the first item in the list.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Nrctnkill on: 11/20/2009
Hi Boss,

Highlight Question and Highlight Answer.

It will be very much useful in validating of dropdownlists and listbox in windows applications rather than web application.

Seems to be very simple question but some good logic.

Welldone for the research.

Analyst Programmer.
Posted by: Virendradugar on: 11/20/2009
Thanks RaviChandra..

Login to post response