Click to See Complete Forum and Search --> : how to insert data


chandra_yvr
March 22nd, 2007, 08:20 AM
Hi
In my program i have 10 checkboxes.User can select one or two or all checkboxes .So how should i enter the data into database

RhinoBull
March 22nd, 2007, 08:44 AM
What database and programming language do you use?
It's quite important to know.

chandra_yvr
March 22nd, 2007, 08:51 AM
What database and programming language do you use?
It's quite important to know.
I am using ASp.net with sqlserver2k.

RhinoBull
March 22nd, 2007, 09:01 AM
ASP.Net is not a programming language - you're probably using C# or VB.Net.
Wich one of those and what version of .Net framework do you have?

chandra_yvr
March 22nd, 2007, 09:14 AM
ASP.Net is not a programming language - you're probably using C# or VB.Net.
Wich one of those and what version of .Net framework do you have?

Sorry i am using vb.net .visualstudio 2005 and sqlserverer2000
My problem is i have 5 checkboxes.in this user selects the checkbox dynamically .In this user selects one or two or three or when user selects header checkbox then all checkboxes are selected.So how should i insert the data into database

dim con as new sqlconnection("userid=sa;pwd=; initial catalog=test")
dim cmd as sql command

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
cmd.CommandText = "insert into check values("what should i write here ....... ")
con.open()
cmd.executenonquery()
con.close()

End Sub