Dropdownlist
i want to insert three drop down list values into one column into sql server table from asp.net C#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Umesh Kumar122 pointsPosted Sep 29, 2014, 8:29 AM EDT
private string ConcatenateCheckBoxListItems() { StringBuilder sb = new StringBuilder(); String trimmedString; foreach (ListItem item in Dropdownlist) { sb.Append(item.Text + ", "); } trimmedString = sb.ToString().TrimEnd(characters); return trimmedString; }1 short reply
Vithal WadjeRank #19 · 47.2K pointsPosted Sep 29, 2014, 7:17 AM EDT