A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Monday, February 9, 2009

Accessing the DropDownList Control's SelectedIndex or SelectedValue Properties Selects the First ListItem

I was recently helping a colleague squash a bug that had popped up on a page that involved a DropDownList. Specifically, an HttpException was being thrown with the error message Cannot have multiple items selected in a DropDownList. This exception is raised, as the message notes, if a DropDownList contains multiple ListItems whose Selected properties are set to true.

The page in question had a DropDownList whose ...Full Article.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy