Hi, I'm wondering about this. I have a product table and when I add some product I used this code. Could this be safe in SQL Injection Attack.
Here is my code:
Try
Dim ta As New sampledbDSTableAdapters.productTableAdapter
ta.Insert(TextBox1.Text, TextBox2.Text, TextBox3.Text, ComboBox1.SelectedValue)
Me.DialogResult = Windows.Forms.DialogResult.OK
Catch ex As Exception
MsgBox(ex.Message)
TextBox1.Focus()
End Try