Return to Snippet

Revision: 24925
at March 16, 2010 05:07 by tomaszsimon


Initial Code
ddlSizeGuide.DataBind();
string sizeGuideId = dtbProductDeb.Rows[0]["sizeGuideId"].ToString();
ListItem liSizeGuide = ddlSizeGuide.Items.FindByValue(sizeGuideId);
int indexOfDD = ddlSizeGuide.Items.IndexOf(liSizeGuide);
ddlSizeGuide.SelectedIndex = indexOfDD;

Initial URL

                                

Initial Description

                                

Initial Title
Setting active item in dropdownlist

Initial Tags
list

Initial Language
C#