如何实现用ID号登录,登录后显示用户名?
请问哪位高手可以教一教我.....急用!SqlCommand scd = new SqlCommand("select count(*) from SysUser where U_ID='" + this.UID.Text.ToString() + "' and U_PSW='" + this.Userpwd.Text.ToString() + "'", sqlcon);
int count = Convert.ToInt32(scd.ExecuteScalar());
if (count > 0)
{
Session["U_ID"] = this.UID.Text.ToString();
this.Panel2.Visible = true;
this.Panel1.Visible = false;
this.Label1.Text = Session["U_ID"].ToString();
}
else
{
Response.Write(this.message("编号或者密码错误"));
}