protected void Page_Load(object sender, EventArgs e) { int Output; BusinessObject obb = new BusinessObject(); BusinessLayer obbb = new BusinessLayer(); obb.userID = txuserid.Text; obb.password = txpassword.Text; Output = obbb.LoginUserDetails(obb); }
protected void Button1_Click(object sender, EventArgs e) { int Output; BusinessObject obb = new BusinessObject(); BusinessLayer obbb = new BusinessLayer(); obb.userID = txtuserid.Text; obb.password = txtpassword.Text; Output = obbb.LoginUserDetails(obb); Session["userId"] = txtuserid.Text; if (Output > 0) { Response.Redirect("next.aspx", true); } else { lblMessage.Text = "Not Registered User"; } }