Hello,
I have the same form:
http://cassinlwbg.facebook.joyent.us/errors/err1.jpg
Now I want to insert data into the DB, here is my code from the CS file:
protected void btnSubmit_Click(object sender, EventArgs e){
SqlCommand command = new SqlCommand("INSERT INTO gameTable(gameName, gamePlatform) VALUES (@gameName, @gamePlatform)", connection);
SqlParameter nameField = new SqlParameter("@id_gameName", SqlDbType.VarChar);
nameField.Value = txtGameName.Value;
command.Parameters.Add(nameField);
SqlParameter platformField = new SqlParameter("@id_gamePlatform", SqlDbType.VarChar);
platformField.Value = txtGamePlatform.Value;
command.Parameters.Add(platformField);
connection.Open();
command.BeginExecuteNonQuery();
connecti ...
Go to the complete details ...