[Solved] Is SqlCommand the only way of adding,deleting and updating records?
Your code seems fine to me, and I am unsure as to what your exact issue is; however, to clear your TextBox control’s .Text property; assign it a value of string.Empty. textBox1.Text = string.Empty; As far as your insert command, that looks fine. A point has been made that your code is vulnerable to SQL … Read more