Users Pricing

forum

Home Forums How To Save Multiple ListBox Value in a single row and in a single column – MindStick

How To Save Multiple ListBox Value in a single row and in a single column

Anonymous User 2357 16 Dec 2013

I want to save multiple list box value into a single field of a table using linq to entity. this is my code. any suggestion?

protected void Button5_Click(object sender, EventArgs e)
{
    for(var i = 0; i < lb2.Items.Count; i++)
    {
        var e1 = new employee() { emp_skill = lb2.Items[i].Text };
        je.employee.AddObject(e1);
    }
    je.SaveChanges();
}

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md