public void ShuKaFileUpdate()
{
SqlConnection Con = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["Con"]);
Con.Open();
SqlCommand cmd = new SqlCommand("update nb_EMPLOYEE set BAIBIE='"+this.ddl_sort.SelectedValue.ToString()+"' where employeeid='"+this.tb_emp.Text+"' ",Con);
cmd.ExecuteNonQuery();
Con.Close();
}
{
SqlConnection Con = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["Con"]);
Con.Open();
SqlCommand cmd = new SqlCommand("update nb_EMPLOYEE set BAIBIE='"+this.ddl_sort.SelectedValue.ToString()+"' where employeeid='"+this.tb_emp.Text+"' ",Con);
cmd.ExecuteNonQuery();
Con.Close();
}
Response.Write("<script>alert('更新成功!')</script>");
{
SqlConnection Con = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["Con"]);
Con.Open();
SqlCommand cmd = new SqlCommand("update nb_EMPLOYEE set BAIBIE='"+this.ddl_sort.SelectedValue.ToString()+"' where employeeid='"+this.tb_emp.Text+"' ",Con);
cmd.ExecuteNonQuery();
Response.Write("<script>alert('更新成功!')</script>"); Con.Close();
}