Can anyone tell me how to get the value from the textbox and store it in the database. tring strConn = "Data Source=localhost;initial catalog=Northwind;UID=sa;pwd=sa"; SqlConnection conn = new SqlConnection(strConn); conn.Open(); string strSQL = "INSERT INTO [Customers](CustomerID, CompanyName) VALUES ('@CustID','@ComName')"; in VB.NET i using this Dim cmd As System.Data.SqlClient.SqlCommand cmd.Parameter.Add("@CustID", customertextBox.Text) cmd.Parameter.Add("@ComName", companytextBox.Text) So in C# it seem a bit diff. Do ...