Skip to content

How to save all items of ListBox using C#

BBeTech

Asked Nov 20, 2007, 10:57 PM EST1 answer
Share
LinkedInX

Hi All,

I am new to programming, here is my requirement, I need to save all items of ListBox to database, can any body suggest me, my environment is asp.net & C#

Thanks in Advance.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    There are many ways to do it. First itereate through the list box items, get the text / value of each item and save them to database. Also you can strore them all in eighter array or in a collection object and then save them in database. You can use ExecuteNonQuery method of SqlCommand to save values to the database.
    0