public void setRegisterAttributes() { r = new RegisterClass(); r.Email = txtEmail.Value; r.Password = txtPassword.Value; }
protected void btnLoginClick(object o, EventArgs e) { try { r = new Login(); r.Email = txtloginemail.Value; r.Password = txtloginPass.Value; r.Validate(); Session["Userpath"] = "C:\\" + txtloginemail.Value + "\\"; Response.Redirect("~/NewHomePage.aspx"); } catch (Exception ex) { lblErrorHandling.Visible = true; lblErrorHandling.Text = ex.Message.ToString(); } }
protected void btnLoginClick(object o, EventArgs e) { try { r = new Login(); r.Email = txtloginemail.Value; r.Password = txtloginPass.Value; r.Validate(); Session["Userpath"] = "C:\\" + txtloginemail.Value+"\\"; Response.Redirect("~/NewHomePage.aspx"); } catch (Exception ex) { lblErrorHandling.Visible = true; lblErrorHandling.Text = ex.Message.ToString(); } }