Welcome to Bangladesh Microsoft Technology Community Sign in | Join | Help

Sunday, August 24, 2008 - Posts

ASP.NET Tips: DropDownList.ClearSelection() to avoid "Cannot have multiple items selected in DropDownList"

Problem I was facing the following Exception when I was programmatically assigning Selected Value of a DropDownList with the following piece of code.ListItem item = DropDownListTest.Items.FindByValue("Test");  if (item != null)    
posted by Shahed | 0 Comments