forum

Home / DeveloperSection / Forums / How To Save Multiple ListBox Value in a single row and in a single column

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

Anonymous User 1956 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();
}

c# c# 
Updated on 16-Dec-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By