关于一个C#下SQL更新问题!
protected void Button1_Click(object sender, EventArgs e)
{
string se = Session["姓名"].ToString();
string password = TextBox1.Text.ToString();
//连接数据库
SqlConnection cn = new SqlConnection("server=JIALIA;uid=sa;pwd=sa;database=JR_WebDatabase");
cn.Open();//打开数据库
//执行SQL语句
string strSQL = String.Format("Update JR_Conscionsness Set [密码]='{0}' WHERE [姓名]='{1}'",password,se);
SqlCommand cmd = new SqlCommand(strSQL, cn);
TextBox1.Text = "";
cn.Close();//关闭数据库
}
请问我这个程序那里有问题?