G
Guest
Here is the code and the error stops with the "executenonquery"
sqlUpdateCommand1.Parameters["@Id"].Value = Request.QueryString["id"];
sqlUpdateCommand1.Parameters["@filnavn"].Value = TextBox2.Text;
sqlUpdateCommand1.Connection.Open();
sqlUpdateCommand1.ExecuteNonQuery();
sqlUpdateCommand1.Connection.Close();
sqlDataAdapter1.Fill(dataSet11);
TextBox1.DataBind();
sqlUpdateCommand1.Parameters["@Id"].Value = Request.QueryString["id"];
sqlUpdateCommand1.Parameters["@filnavn"].Value = TextBox2.Text;
sqlUpdateCommand1.Connection.Open();
sqlUpdateCommand1.ExecuteNonQuery();
sqlUpdateCommand1.Connection.Close();
sqlDataAdapter1.Fill(dataSet11);
TextBox1.DataBind();