Posted on: 7/25/2014 2:32:28 PM | Views : 540

I'd like to do something like this, is it possible?
private void dictionary() { Dictionary<string, string> list = new Dictionary<string, string>(); list.Add("item 1", "Item 1"); list.Add("item 2", "Item 2"); list.Add("item 3", "Item 3"); list.Add("item 4", "Item 4"); }private void BindDropdownlist(){dropDownList.DataSource = list; dropDownList.DataTextField = "Value"; dropDownList.DataValueField = "Key"; dropDownList.DataBind();}

Go to the complete details ...