绑定数据库的问题!
string id = "1";string nr = TextBox1.Text.ToString();
SqlConnection conn = new SqlConnection(strConn);
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
= "update jianjie set neirong='"
+ nr + "'where ID='"
+ id + "'";
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
我要更新好数据后 绑定数据 让textbox显示更新后的新数据!如何绑定??