protected void Submit(object sender, EventArgs e)
{
var Trolley = txttrolley.Text;
string Id = "";
if (btnsubmit.Text == "Add")
{
Id = " 0";
}
else
{
Id = ViewState["ID"].ToString();
}
string Attribute = "";
try
{
foreach (ListItem item in DropDownCheckBoxes1.Items)
{
if (item.Selected)
{
Attribute += item.Value + ",";
}
}
Attribute = Attribute.Remove(Attribute.Length - 1);
}
catch (Exception ex)
{
}
Not able to store the checkbox values in seperate rows
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Nilesh SawardekarRank #648 · 3.7K reputationPosted Jul 23, 2016, 8:02 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 21, 2016, 11:21 PM EDT
Narasimha Murthy37 reputationPosted Jul 22, 2016, 4:30 AM EDT