Пример #1
0
 protected void OnLogin(object sender, System.EventArgs e)
 {
     System.Web.UI.MobileControls.TextBox txtUserID       = (System.Web.UI.MobileControls.TextBox)Panel1.Controls[0].FindControl("txtUserID");
     System.Web.UI.MobileControls.TextBox txtPassword     = (System.Web.UI.MobileControls.TextBox)Panel1.Controls[0].FindControl("txtPassword");
     System.Web.UI.MobileControls.Label   lblInvalidLogin = (System.Web.UI.MobileControls.Label)Panel1.Controls[0].FindControl("lblInvalidLogin");
     if (IsAuthenticated(txtUserID.Text, txtPassword.Text))
     {
         MobileFormsAuthentication.RedirectFromLoginPage(txtPassword.Text, true);
     }
     else
     {
         lblInvalidLogin.Visible = true;
         lblInvalidLogin.Text    = "*-Credenziali non Valide";
     }
 }
Пример #2
0
 public override void Initialize(IComponent component)
 {
     this._textBox = (TextBox) component;
     base.Initialize(component);
 }
Пример #3
0
 public DesignerTextBoxAdapter(TextBox textBox)
 {
     base.set_Control(textBox);
 }