protected bool LoadUserEmployerSessionInfo(out String lastUrl) { //Overloaded method to return whether or not the user completed IQ, no need to store in session using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim())) { if (!gkei.PutInSession(MainLogin.UserName)) { Literal failText = (Literal)MainLogin.FindControl("FailureText"); failText.Text = gkei.SqlException; failText.Visible = true; lastUrl = "error"; return(false); } if (gkei.Tables.Count < 4) { lastUrl = "error"; return(false); } if (gkei.Tables[3].Rows.Count < 1) { lastUrl = "error"; return(false); } if (gkei.Tables[3].Rows[0].Field <string>("action") == "completed") { lastUrl = ""; return(true); } lastUrl = gkei.Tables[3].Rows[0].Field <string>("url"); return(false); } }
protected void LoadUserEmployerSessionInfo() { //Which employer database? GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(ThisSession.PatientEmail); if (!gkei.HasErrors) { gkei.PutInSession(ThisSession.PatientEmail); } }
protected void LoadUserEmployerSessionInfo() { //Which employer database? GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim()); if (!gkei.PutInSession(MainLogin.UserName)) { Literal failText = (Literal)MainLogin.FindControl("FailureText"); failText.Text = gkei.SqlException; failText.Visible = true; } }
protected void LoadUserSessionInfo() { String sUN = (cuwReview.UserName).Trim(); MembershipUser mu = Membership.GetUser(sUN); String puk = mu.ProviderUserKey.ToString(); using (GetKeyUserInfo gkui = new GetKeyUserInfo(puk)) { gkui.PutInSession(); } using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(sUN)) { gkei.PutInSession(cuwReview.UserName.Trim()); } ThisSession.UserLogginID = puk; ThisSession.LoggedIn = true; }
protected bool LoadUserEmployerSessionInfo(out String lastUrl) { //Overloaded method to return whether or not the user completed IQ, no need to store in session using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(MainLogin.UserName.Trim())) { if (!gkei.PutInSession(MainLogin.UserName)) { Literal failText = (Literal)MainLogin.FindControl("FailureText"); failText.Text = gkei.SqlException; failText.Visible = true; lastUrl = "error"; return false; } if (gkei.Tables.Count < 4) { lastUrl = "error"; return false; } if (gkei.Tables[3].Rows.Count < 1) { lastUrl = "error"; return false; } if (gkei.Tables[3].Rows[0].Field<string>("action") == "completed") { lastUrl = ""; return true; } lastUrl = gkei.Tables[3].Rows[0].Field<string>("url"); return false; } }
protected void LoadUserSessionInfo() { String sUN = (cuwReview.UserName).Trim(); MembershipUser mu = Membership.GetUser(sUN); String puk = mu.ProviderUserKey.ToString(); using(GetKeyUserInfo gkui = new GetKeyUserInfo(puk)) { gkui.PutInSession(); } using (GetKeyEmployeeInfo gkei = new GetKeyEmployeeInfo(sUN)) { gkei.PutInSession(cuwReview.UserName.Trim()); } ThisSession.UserLogginID = puk; ThisSession.LoggedIn = true; }