最简单的密码验证asp.net c#

protected void Button1_Click(object sender, EventArgs e)
{

string bh = this.TextBox1.Text.Trim();
string pass = this.TextBox2.Text.Trim();
DataTable dt = new olecado().ruibomima(bh, pass);
if (dt.Rows.Count > 0)
{
Session["kk"] = this.TextBox1.Text.ToString().Trim();

Response.Redirect("gllist.aspx");

}
else
{
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "");
return;
}
}

你可能感兴趣的:(最简单的密码验证asp.net c#)