Dim
Sorgu As String = "Insert Into kod(yer,kod,aciklama) values (@yer,@kod,@aciklama)" Dim Komut As New SqlCommand(Sorgu, con)Komut.Parameters.Add(
"@yer", TextBox5.Text)Komut.Parameters.Add(
"@kod", TextBox1.Text)Komut.Parameters.Add(
"@aciklama", TextBox2.Text)Komut.CommandText = Sorgu
con.Open()
Komut.ExecuteNonQuery()
con.Close()
this codes haven been working on vb.net 2003. but I want to work this codes on vb.net 2005. I had been trying this codes on vb.net 2005 and me it had showed error. I have been taking errors on komut.parameters.add rows. How can I do on vb.net 2005

vb.net 2005 insert parameters
Cassie1
It is now AddWithValue
http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlparametercollection.addwithvalue(VS.80).aspx