if ( == ""|| == ""|| == "")
{
if ((" 您输入的信息不完整! ,是否关闭窗口", "提示",
, ) ==
)
{
();
}
}
else if(!=)
{
if ((" 您的新密码输入错误! ,是否关闭窗口", "提示",
, ) ==
)
{
();
}
}
else if ( != "")
{
string constr = "integrated security=SSPI;data source=.;persist security info=False;initial catalog=anne";
SqlConnection sqlConnection1 = new SqlConnection(constr);
string sq1 = "select 密码 from 密码表 where 用户名='admin'";
SqlDataAdapter sqlDataAdapter1 = new SqlDataAdapter(sq1, sqlConnection1);
DataSet dt1 = new DataSet();
(dt1, "密码表");
string sq2= ;
string sq3 = (string)["密码表"].Rows[0]["密码"];
c#修改密码-代码 来自淘豆网m.daumloan.com转载请标明出处.