protected void Wizard1_NextButtonClick(object sender, System.Web.UI.WebControls.WizardNavigationEventArgs e) { if (e.CurrentStepIndex == 0) { System.Web.UI.WebControls.Login l = (Login)Wizard1.FindControl("Login1"); if (Membership.ValidateUser(l.UserName, l.Password)) { FormsAuthentication.SetAuthCookie(l.UserName, l.RememberMeSet); e.Cancel = false; } else { l.InstructionText = "Your login attempt was not successful. Please try again."; l.InstructionTextStyle.ForeColor = System.Drawing.Color.Red; e.Cancel = true; } } else { if (!User.Identity.IsAuthenticated) { e.Cancel = true; Wizard1.ActiveStepIndex = 0; } } }
protected void Login1_LoginError(object sender, EventArgs e) { System.Web.UI.WebControls.Login login1 = sender as System.Web.UI.WebControls.Login; login1.FailureText = "FAIL. Please try again or <a href='" + this.ResolveUrl("~/RecoverPassword.aspx") + "'>reset</a> your password"; this.MPESignup.Show(); }
public LoginContainer (Login owner) { _owner = owner; renderOuterTable = _owner.RenderOuterTable; if (renderOuterTable) InitTable (); }
/// <summary> /// Fix for RememberMe (persistent cookie). /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Login1_LoggedIn(object sender, EventArgs e) { System.Web.UI.HtmlControls.HtmlInputCheckBox rememberMe = (System.Web.UI.HtmlControls.HtmlInputCheckBox) this.Login1.FindControl("RememberMe"); System.Web.UI.WebControls.Login login = (System.Web.UI.WebControls.Login)sender; if (rememberMe.Checked) { System.Web.Security.FormsAuthentication.SetAuthCookie(login.UserName, true); } }
public LoginContainer (Login owner) { _owner = owner; #if NET_4_0 renderOuterTable = _owner.RenderOuterTable; if (renderOuterTable) #endif InitTable (); }
protected void Login1_LoggedIn(object sender, EventArgs e) { if (Request["ReturnUrl"] == null) { System.Web.UI.WebControls.Login login = sender as System.Web.UI.WebControls.Login; //MembershipUser mUser = Membership.GetUser(login.UserName); //if (Roles.IsUserInRole(login.UserName, "User")) // Response.Redirect("/Users"); } }
protected void Page_Load(object sender, EventArgs e) { if (!Request.Path.EndsWith("register.aspx")) { PageBase page = (PageBase)Page; login = (System.Web.UI.WebControls.Login)LoginView1.FindControl("Login1"); if (HttpContext.Current.User.Identity.IsAuthenticated) { LoginName Lname = (LoginName)LoginView1.FindControl("ln2"); Literal lit = (Literal)LoginView1.FindControl("Literal1"); string separator = _skinid == "LoginTop" ? @" " : @"<br/>"; lit.Text = separator; string lastloggedOn = SnitzTime.TimeAgoTag(page.LastVisitDateTime, page.IsAuthenticated, page.Member); if (Lname != null) { Lname.FormatString = String.Format(Resources.webResources.lblLoggedOn, HttpContext.Current.User.Identity.Name, separator, lastloggedOn); } } else { if (login != null) { Label uL = (Label)login.FindControl("UserNameLabel"); if (uL != null) { uL.Text = Resources.webResources.lblUsername; } uL = (Label)login.FindControl("PasswordLabel"); if (uL != null) { uL.Text = Resources.webResources.lblPassword; } CheckBox cbx = (CheckBox)login.FindControl("RememberMe"); if (cbx != null) { cbx.Text = Resources.webResources.lblRememberMe; } } } if (login != null) { RequiredFieldValidator rfv1 = (RequiredFieldValidator)login.FindControl("UserNameRequired"); rfv1.Text = Resources.webResources.ErrNoUsername; RequiredFieldValidator rfv2 = (RequiredFieldValidator)login.FindControl("PasswordRequired"); rfv2.Text = Resources.webResources.ErrNoPassword; } } }
public void fp_Click(object sender, EventArgs e) { Login login = new Login(); bool loginResult = login.checkToken(Context); if (loginResult)//登陆成功 { //打开扩展系统 Response.Write("<script>window.open('FpExtendPage.aspx','_blank')</script>"); } else { //打开登陆窗 Response.Write("<script>window.open('Login.aspx','_blank')</script>"); } }
protected void LoginSporty_LoggedIn(object sender, EventArgs e) { try { System.Web.UI.WebControls.Login log = LoginSporty; setSession(log.UserName); redirection.GoHome(log.UserName); } catch (System.Threading.ThreadAbortException ex) { //don't log this..... //comes due to redirection in between of page execution..... } }
protected void Login1_LoggingIn1(object sender, LoginCancelEventArgs e) { System.Web.UI.WebControls.Login login = sender as System.Web.UI.WebControls.Login; MembershipUser mUser = Membership.GetUser(login.UserName); if (mUser != null && !mUser.IsApproved) { //remind user they need to activate thier account //show email box //update email address, then resend activation activateBox.Visible = true; lblEmail.Text = mUser.Email; UserManager.SendActivateEmail(mUser); } }
protected void User_Authenticate(object sender, AuthenticateEventArgs e) { System.Web.UI.WebControls.Login login = sender as System.Web.UI.WebControls.Login; string str = ""; login.UserName = "******"; // object obj = (new ProceduresAdapter()).ValidateUser(login.UserName, login.Password, ref str); object obj = (new ProceduresAdapter()).ValidateUser(login.UserName, "1", ref str); object obj1 = obj; if (obj == null) { login.FailureText = "Utilizator sau parola gresita!"; return; } this.Session["UserId"] = obj1; FormsAuthentication.RedirectFromLoginPage(str, false); }
protected void Login01_OnAuthenticate(object sender, AuthenticateEventArgs e) { System.Web.UI.WebControls.Login login = (System.Web.UI.WebControls.Login)sender; string username = login.UserName; string password = login.Password; try { UserIdentity.UserValidate(Server, username, password); string uiPassword = UserIdentity.Password; } catch (Exception ex) { throw; } e.Authenticated = UserIdentity.IsApproved; }
protected void Page_Load(object sender, EventArgs e) { if (!Request.Path.EndsWith("register.aspx")) { PageBase page = (PageBase)Page; login = (System.Web.UI.WebControls.Login)LoginView1.FindControl("Login1"); if (HttpContext.Current.User.Identity.IsAuthenticated) { LoginName Lname = (LoginName)LoginView1.FindControl("ln2"); Literal lit = (Literal) LoginView1.FindControl("Literal1"); string separator = _skinid == "LoginTop" ? @" " : @"<br/>"; lit.Text = separator; string lastloggedOn = SnitzTime.TimeAgoTag(page.LastVisitDateTime, page.IsAuthenticated, page.Member); if (Lname != null) Lname.FormatString = String.Format(Resources.webResources.lblLoggedOn, HttpContext.Current.User.Identity.Name,separator, lastloggedOn); }else { if (login != null) { Label uL = (Label) login.FindControl("UserNameLabel"); if (uL != null) uL.Text = Resources.webResources.lblUsername; uL = (Label) login.FindControl("PasswordLabel"); if (uL != null) uL.Text = Resources.webResources.lblPassword; CheckBox cbx = (CheckBox) login.FindControl("RememberMe"); if (cbx != null) cbx.Text = Resources.webResources.lblRememberMe; } } if (login != null) { RequiredFieldValidator rfv1 = (RequiredFieldValidator) login.FindControl("UserNameRequired"); rfv1.Text = Resources.webResources.ErrNoUsername; RequiredFieldValidator rfv2 = (RequiredFieldValidator) login.FindControl("PasswordRequired"); rfv2.Text = Resources.webResources.ErrNoPassword; } } }
protected void Login1_LoggingIn1(object sender, LoginCancelEventArgs e) { System.Web.UI.WebControls.Login login1 = sender as System.Web.UI.WebControls.Login; MembershipUser mUser = Membership.GetUser(login1.UserName); if (mUser != null && !mUser.IsApproved) { //remind user they need to activate thier account Database db = DatabaseFactory.CreateDatabase("cnGrammit"); login1.FailureText = "Almost there! You must <a href='/login.aspx'>ACTIVATE </a> your account first."; login1.FindControl("UserNameLabel").Visible = login1.FindControl("UserName").Visible = login1.FindControl("PasswordLabel").Visible = login1.FindControl("Password").Visible = login1.FindControl("LoginLinkButton").Visible = false; } }
/// <summary> /// Writes the submit panel. /// </summary> /// <param name="writer"> /// The writer. /// </param> /// <param name="login"> /// The login. /// </param> /// <remarks> /// </remarks> private void WriteSubmitPanel(HtmlTextWriter writer, Login login) { var id = "Login"; var idWithType = WebControlAdapterExtender.MakeIdWithButtonType(id, login.LoginButtonType); var btn = login.FindControl(idWithType); if (btn == null) { return; } this.Page.ClientScript.RegisterForEventValidation(btn.UniqueID); WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-SubmitPanel", string.Empty); var options = new PostBackOptions( btn, string.Empty, string.Empty, false, false, false, true, true, login.UniqueID); var javascript = "javascript:" + this.Page.ClientScript.GetPostBackEventReference(options); javascript = this.Page.Server.HtmlEncode(javascript); this.Extender.WriteSubmit( writer, login.LoginButtonType, login.LoginButtonStyle.CssClass, id, login.LoginButtonImageUrl, javascript, login.LoginButtonText); WebControlAdapterExtender.WriteEndDiv(writer); }
private void WritePasswordPanel(HtmlTextWriter writer, Login login) { Page.ClientScript.RegisterForEventValidation(login.FindControl("Password").UniqueID); WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-PasswordPanel"); Extender.WriteTextBox(writer, true, login.LabelStyle.CssClass, login.PasswordLabelText, login.TextBoxStyle.CssClass, "Password", ""); WebControlAdapterExtender.WriteRequiredFieldValidator(writer, login.FindControl("PasswordRequired") as RequiredFieldValidator, login.ValidatorTextStyle.CssClass, "Password", login.PasswordRequiredErrorMessage); WebControlAdapterExtender.WriteEndDiv(writer); }
private void WriteCreateUserPanel(HtmlTextWriter writer, Login login) { if ((!String.IsNullOrEmpty(login.CreateUserUrl)) || (!String.IsNullOrEmpty(login.CreateUserText))) { WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-CreateUserPanel"); WebControlAdapterExtender.WriteImage(writer, login.CreateUserIconUrl, "Create user"); WebControlAdapterExtender.WriteLink(writer, login.HyperLinkStyle.CssClass, login.CreateUserUrl, "Create user", login.CreateUserText); WebControlAdapterExtender.WriteEndDiv(writer); } }
protected void Page_Load(object sender, EventArgs e) { //string[] userRoleName = (((FormsIdentity)HttpContext.Current.User.Identity).Ticket).UserData.Split('|'); //currentUserRoleId = Convert.ToInt32(userRoleName[1]); //currentUserId = Convert.ToInt32(Session["UserId"]); roleID = SessionHelper.getUserRoleId(); clientID = SessionHelper.getClientId(); userID = SessionHelper.getUserId(); string hiddenValue = claimProgressChart.hiddenvalue.Value; hf_clientID.Value = clientID.ToString(); if (!Page.IsPostBack) { this.TypeView = "day"; //LoginSettings loginSettings = new LoginSettings(); //loginSettings.Permissions = new string[] { "me", "friends", "publish_stream", "read_stream" }; rbOff.Checked = true; bindData(); } else { bindResources(); if (hiddenValue == "1") { bindDataWithFilter(); } } //this.viewHolder.Controls.Add(GetView()); //checkForReminders(); Login login = new Login(); login.setGlobalSession(); login.formatException(); login.setRulexception(); }
protected void LoginSporty_LoginError(object sender, EventArgs e) { System.Web.UI.WebControls.Login log = LoginSporty; MembershipUser userInfo = Membership.GetUser(log.UserName); if (userInfo == null) { log.FailureText = CommonMessages.ShowMsg_Literal("There is no user in the database with the username " + log.UserName + ".", CommonMessages.messageType.ERROR); } else { if (!userInfo.IsApproved) { log.FailureText = CommonMessages.ShowMsg_Literal("Your account has not yet been approved. Please try again later...", CommonMessages.messageType.WARNING); } else if (userInfo.IsLockedOut) { SportyFYEntities model = new SportyFYEntities(); string status = ""; var qry = from a in model.UserMasters where a.UserId == (Guid)userInfo.ProviderUserKey select a; foreach (var t in qry) { status = t.status.ToUpper(); if (status.ToUpper() == "U") { log.FailureText = CommonMessages.ShowMsg_Literal("Your account is temporary locked for security reasons...", CommonMessages.messageType.WARNING); string time = ConfigurationManager.AppSettings["autoUnlockTimeout"]; if (!String.IsNullOrEmpty(time)) { if (userInfo.LastLockoutDate.ToUniversalTime().AddMinutes(Double.Parse(time)) < DateTime.UtcNow) { bool retval = userInfo.UnlockUser(); if (retval) { Membership.UpdateUser(userInfo); } } else { //send mail to unlock it now..... } } } else if (status.ToUpper() == "D") { log.FailureText = CommonMessages.ShowMsg_Literal("Your account has been deleted by the Admin due to some reasons...", CommonMessages.messageType.ERROR); } else if (status.ToUpper() == "L") { log.FailureText = CommonMessages.ShowMsg_Literal("Your account has been locked out by the Admin due to some reasons...", CommonMessages.messageType.ERROR); } else { log.FailureText = CommonMessages.ShowMsg_Literal("Your account details has not been authenticated...", CommonMessages.messageType.ERROR); } } } else { log.FailureText = CommonMessages.ShowMsg_Literal("Username or password not match...", CommonMessages.messageType.ERROR); } } }
protected void btnSave_Click(object sender, EventArgs e) { Page.Validate(); //if (Page.IsValid) { // save claim claimEdit.saveForm(); Login login = new Login(); login.formatException(); login.setRulexception(); //} }
private void WriteTitlePanel(HtmlTextWriter writer, Login login) { if (!String.IsNullOrEmpty(login.TitleText)) { string className = (login.TitleTextStyle != null) && (!String.IsNullOrEmpty(login.TitleTextStyle.CssClass)) ? login.TitleTextStyle.CssClass + " " : ""; className += "AspNet-Login-TitlePanel"; WebControlAdapterExtender.WriteBeginDiv(writer, className, ""); WebControlAdapterExtender.WriteSpan(writer, "", login.TitleText); WebControlAdapterExtender.WriteEndDiv(writer); } }
private void WriteRememberMePanel(HtmlTextWriter writer, Login login) { if (login.DisplayRememberMe) { Control control = login.FindControl("RememberMe"); Page.ClientScript.RegisterForEventValidation(control.UniqueID); WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-RememberMePanel", ""); Extender.WriteCheckBox(writer, login.LabelStyle.CssClass, login.RememberMeText, login.CheckBoxStyle.CssClass, "RememberMe", control.UniqueID, login.RememberMeSet); WebControlAdapterExtender.WriteEndDiv(writer); } }
private void WriteHelpPanel(HtmlTextWriter writer, Login login) { if ((!String.IsNullOrEmpty(login.HelpPageIconUrl)) || (!String.IsNullOrEmpty(login.HelpPageText))) { WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-HelpPanel", ""); WebControlAdapterExtender.WriteImage(writer, Extender.ResolveUrl(login.HelpPageIconUrl), "Help"); WebControlAdapterExtender.WriteLink(writer, login.HyperLinkStyle.CssClass, Extender.ResolveUrl(login.HelpPageUrl), "Help", login.HelpPageText); WebControlAdapterExtender.WriteEndDiv(writer); } }
private void CheckLogin() { // MenuBar.InnerHtml = ""; Login checkLogin = new Login(); // MenuBar.InnerHtml = checkLogin.checklogin(Context); }
private void WritePasswordRecoveryPanel(HtmlTextWriter writer, Login login) { if ((!String.IsNullOrEmpty(login.PasswordRecoveryUrl)) || (!String.IsNullOrEmpty(login.PasswordRecoveryText))) { WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-PasswordRecoveryPanel", ""); WebControlAdapterExtender.WriteImage(writer, Extender.ResolveUrl(login.PasswordRecoveryIconUrl), "Password recovery"); WebControlAdapterExtender.WriteLink(writer, login.HyperLinkStyle.CssClass, Extender.ResolveUrl(login.PasswordRecoveryUrl), "Password recovery", login.PasswordRecoveryText); WebControlAdapterExtender.WriteEndDiv(writer); } }
protected void btnSave_Click(object sender, EventArgs e) { BusinessRule rule = null; int businessRuleID = 0; Page.Validate("rule"); if (!Page.IsValid) return; businessRuleID = Convert.ToInt32(ViewState["businessRuleID"]); lblMessage.Text = ""; lblMessage.Visible = false; try { using (BusinessRuleManager repository = new BusinessRuleManager()) { if (businessRuleID == 0) { rule = new BusinessRule(); BusinessRules businessRulesObj = new BusinessRules(); rule.RuleID = Convert.ToInt32(Session["ruleId"]); rule.ClientID = SessionHelper.getClientId(); rule.CarrierId = Convert.ToInt32(this.ddlCarrier.SelectedValue); } else { rule = repository.GetBusinessRule(businessRuleID); } if (rule != null) { rule.IsActive = cbxActive.Checked; rule.EmailAdjuster = cbxEmailAdjuster.Checked; rule.EmailSupervisor = cbxEmailSupervisor.Checked; rule.CarrierId = Convert.ToInt32(this.ddlCarrier.SelectedValue); rule.Description = txtDescription.Text; ViewState["businessRuleID"] = rule.BusinessRuleID.ToString(); rule.RuleXML = buildRule().ToString(); rule = repository.Save(rule); string str_query = @"update BusinessRule set CarrierId = @CarrierId where BusinessRuleID=@BusinessRuleID "; using (SqlConnection conn = new SqlConnection(connectionString)) using (SqlCommand cmd = new SqlCommand(str_query, conn)) { cmd.Parameters.AddWithValue("@BusinessRuleID ", rule.BusinessRuleID); cmd.Parameters.AddWithValue("@CarrierId", rule.CarrierId); conn.Open(); cmd.ExecuteNonQuery(); conn.Close(); conn.Dispose(); conn.Close(); } lblMessage.Text = "Rule saved successfully."; // notifyUser(txtDescription.Text, SessionHelper.getClientId()); lblMessage.CssClass = "ok"; lblMessage.Visible = true; } } Login login = new Login(); login.setGlobalSession(); login.formatException(); login.setRulexception(); } catch (Exception ex) { Core.EmailHelper.emailError(ex); lblMessage.Text = "Rule not saved."; lblMessage.CssClass = "error"; lblMessage.Visible = true; } }
private void WriteSubmitPanel(HtmlTextWriter writer, Login login) { string id = "Login"; string idWithType = WebControlAdapterExtender.MakeIdWithButtonType(id, login.LoginButtonType); Control btn = login.FindControl(idWithType); if (btn != null) { Page.ClientScript.RegisterForEventValidation(btn.UniqueID); WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-SubmitPanel", ""); bool clientSubmit = (login.LoginButtonType == ButtonType.Link); PostBackOptions options = new PostBackOptions(btn, "", "", false, false, false, clientSubmit, true, login.UniqueID); string javascript = "javascript:" + Page.ClientScript.GetPostBackEventReference(options); javascript = Page.Server.HtmlEncode(javascript); Extender.WriteSubmit(writer, login.LoginButtonType, login.LoginButtonStyle.CssClass, id, btn.UniqueID, Extender.ResolveUrl(login.LoginButtonImageUrl), javascript, login.LoginButtonText); WebControlAdapterExtender.WriteEndDiv(writer); } }
public LoginTemplate (Login login) { _login = login; }
private void WriteUserPanel(HtmlTextWriter writer, Login login) { Control control = login.FindControl("UserName"); Page.ClientScript.RegisterForEventValidation(control.UniqueID); WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-UserPanel", ""); Extender.WriteTextBox(writer, false, login.LabelStyle.CssClass, login.UserNameLabelText, login.TextBoxStyle.CssClass, "UserName", control.UniqueID, login.UserName); WebControlAdapterExtender.WriteRequiredFieldValidator(writer, login.FindControl("UserNameRequired") as RequiredFieldValidator, login.ValidatorTextStyle.CssClass, "UserName", login.UserNameRequiredErrorMessage); WebControlAdapterExtender.WriteEndDiv(writer); }
/// <summary> /// Writes the help panel. /// </summary> /// <param name="writer"> /// The writer. /// </param> /// <param name="login"> /// The login. /// </param> /// <remarks> /// </remarks> private static void WriteHelpPanel(HtmlTextWriter writer, Login login) { if (String.IsNullOrEmpty(login.HelpPageIconUrl) && String.IsNullOrEmpty(login.HelpPageText)) { return; } WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-HelpPanel", string.Empty); WebControlAdapterExtender.WriteImage(writer, login.HelpPageIconUrl, "Help"); WebControlAdapterExtender.WriteLink( writer, login.HyperLinkStyle.CssClass, login.HelpPageUrl, "Help", login.HelpPageText); WebControlAdapterExtender.WriteEndDiv(writer); }
public static void PostBackFireEvent_Init (Page p) { Login l = new Login (); l.Authenticate += new AuthenticateEventHandler (Authenticate_Event); l.LoggedIn += new EventHandler (l_LoggedIn); l.LoggingIn += new LoginCancelEventHandler (l_LoggingIn); l.LoginError += new EventHandler (l_LoginError); l.ID = "Login1"; l.MembershipProvider = "FakeProvider"; p.Controls.Add (l); p.Validate (); }
protected void gvBsuinessRules_RowCommand(object sender, GridViewCommandEventArgs e) { BusinessRule businessRule = null; int businessRuleID = 0; lblMessage.Text = string.Empty; lblMessage.Visible = false; if (e.CommandName == "DoEdit") { businessRuleID = Convert.ToInt32(e.CommandArgument); using (BusinessRuleManager repository = new BusinessRuleManager()) { businessRule = repository.GetBusinessRule(businessRuleID); if (businessRule != null) { editBusinessRule((int)businessRule.RuleID, businessRule.Rule.RuleName, businessRule); } } } else if (e.CommandName == "DoDelete") { try { businessRuleID = Convert.ToInt32(e.CommandArgument); using (BusinessRuleManager repository = new BusinessRuleManager()) { businessRule = repository.GetBusinessRule(businessRuleID); businessRule.IsActive = false; repository.Save(businessRule); refreshBusinessRuleGrid(); lblMessage.Text = "Rule was deactivate successfully."; lblMessage.CssClass = "ok"; lblMessage.Visible = true; Login login = new Login(); login.formatException(); login.setRulexception(); } } catch (Exception ex) { lblMessage.Text = "Rule was not deactivate."; lblMessage.CssClass = "ok"; lblMessage.Visible = true; } } }
//Test function public static void getMenu(Menu NavigationMenu, Login LoginControl, string perfil) { LoginControl.Visible = false; SqlConnection con; SqlCommand cmd = new SqlCommand(); DataSet ds = new DataSet(); DataTable dt = new DataTable(); System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/BitOp"); System.Configuration.ConnectionStringSettings connString; connString = rootWebConfig.ConnectionStrings.ConnectionStrings["BopDBConnectionString"]; con = new SqlConnection(connString.ToString()); cmd.Connection = con; con.Open(); string sql = "SELECT * FROM [V_MENUS] Where [Perfil]='" + perfil + "'"; SqlDataAdapter da = new SqlDataAdapter(sql, con); da.Fill(ds); dt = ds.Tables[0]; NavigationMenu.Items.Clear(); AddTopMenuItems(NavigationMenu, dt); con.Close(); }
/// <summary> /// Writes the instruction panel. /// </summary> /// <param name="writer"> /// The writer. /// </param> /// <param name="login"> /// The login. /// </param> /// <remarks> /// </remarks> private static void WriteInstructionPanel(HtmlTextWriter writer, Login login) { if (String.IsNullOrEmpty(login.InstructionText)) { return; } var className = (!String.IsNullOrEmpty(login.InstructionTextStyle.CssClass)) ? login.InstructionTextStyle.CssClass + " " : string.Empty; className += "AspNet-Login-InstructionPanel"; WebControlAdapterExtender.WriteBeginDiv(writer, className, string.Empty); WebControlAdapterExtender.WriteSpan(writer, string.Empty, login.InstructionText); WebControlAdapterExtender.WriteEndDiv(writer); }
public LoginContainer (Login owner) { _owner = owner; InitTable (); }
private void AddLoginForm() { LoginForm = new System.Web.UI.WebControls.Login { ID = "Login1", Visible = false, TitleText = LoginTitleText, RememberMeSet = LoginRememberMeSet, UserNameLabelText = UserNameLabelText, PasswordLabelText = PasswordLabelText }; LoginForm.Authenticate += Login1_Authenticate; base.Controls.Add(LoginForm); }