.........Hi
i want to insert multi value from checkboxlist to the same value in textbox
i try this code but error has been occured please help to correct this
Dim conn As SqlConnection
Dim cmd As SqlCommand
("conn = New SqlConnection("initial catalog=test1;data source=NANA;user id=sa
conn.Open
(cmd = New SqlCommand("sp_addCu", conn
cmd.CommandType = CommandType.StoredProcedure
(Dim para0 As New SqlClient.SqlParameter("@cust_name", SqlDbType.NVarChar, 50
para0.Direction = ParameterDirection.Input
( Dim para1 As New SqlClient.SqlParameter("@cust_no", SqlDbType.Int
para1.Direction = ParameterDirection.Input
Dim j As Integer
For j = 0 To c1.Items.Count - 1
If c1.Items(j).Selected Then
para0.Value = TextBox1.Text
(cmd.Parameters.Add(para0
para1.Value = c1.Items(j).Value
( cmd.Parameters.Add(para1
cmd.ExecuteNonQuery()
End If
Next
conn.Close()
and the error: ( The SqlParameter with ParameterName '@cust_name' is already ontained by this SqlParameterCollection