protected void BtnLogin_Click(object sender, EventArgs e)
{
if (this.TxtUserName.Text.ToString().Trim() == "" | this.TxtPassword.Text.ToString().Trim() == "" )
{
Response.Write("");
return;
}
SQl = "select * from login where username='" + this.TxtUserName.Text.ToString().Trim();
SQl = SQl + "' and password='" + this.TxtPassword.Text.ToString().Trim();
SQl = SQl + "' and active<>'D'";
try
{
Dr = SCon.ReadSql(SQl);
if (Dr.HasRows==false)
{
Response.Write("");
return;
}
Dr.Read();
}
catch (Exception e1)
{
Response.Write("");
}
}
Vithal WadjePosted Dec 26, 2012, 12:52 AM
pradeep kumarPosted Dec 26, 2012, 12:24 AM
do u bind any menu here..?