Exemple #1
0
 protected override void OnInit(EventArgs e)
 {
     if (Core.IsUserActive)
     {
         CustomizeControl1.MessageText  = MessageBox.AccessDenied();
         CustomizeControl1.PanelVisible = false;
         return;
     }
     switch (Request.QueryString["r"])
     {
     case "sifre":
         TextBox txt = new TextBox();
         txt.ID = "sifre";
         CustomizeControl1.AddControl("Yeni Şifre", txt);
         CustomizeControl1.SubmitClick += new CustomizeControl.ButtonEvent(CustomizeControl1_SubmitClick);
         break;
     }
     base.OnInit(e);
 }
Exemple #2
0
        protected override void OnInit(EventArgs e)
        {
            if (Core.IsUserActive)
            {
                CustomizeControl1.MessageText  = MessageBox.AccessDenied();
                CustomizeControl1.PanelVisible = false;
                return;
            }
            //<a class=\"toolTip\" title=\"Yeni Kullanıcı kayıtı için tıkla.\" href=\"{0}?l=2\">Yeni Üye Kayıt</a>&nbsp;&nbsp;-&nbsp;&nbsp;
            switch (Request.QueryString["r"])
            {
            case "sifre":
                CustomizeControl1.FormTitle   = string.Format(Settings.FormTitleFormat, "Şifre", "Hatırlatma Formu");
                CustomizeControl1.MessageText = MessageBox.Show(DialogResult.Info, "Yeni <b>Şifre</b> talebinde bulunmak için aşağıdaki alana mail adresinizi giriniz ve mail adresinize gönderilen güvenlik bağlantısına tıklayınız. Karşınıza gelen ekranda yeni şifrenizi girerek işleminizi gerçekşleştiriniz.");
                //CustomizeControl1.StatusText = string.Format("<a rel=\"nofollow\" class=\"toolTip\" title=\"Kullanıcı girişi yapmak için tıkla!\" href=\"{0}?go=login\">Giriş Ekranı</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a rel=\"nofollow\" class=\"toolTip\" title=\"Aktivasyon talep formu için tıklayın.\" href=\"{0}?go=register&r=aktivasyon\">Aktivasyon Kodu</a>", Settings.VirtualPath);
                this.Page.Title = "Yeni Şifre Talep Formu";
                break;

            case "aktivasyon":
                CustomizeControl1.FormTitle   = string.Format(Settings.FormTitleFormat, "Aktivasyon", "Talep Formu");
                CustomizeControl1.MessageText = MessageBox.Show(DialogResult.Info, "Yeni <b>Aktivasyon Kodu</b> talebinde bulunmak için aşağıdaki kutuya mail adresinizi yazınız ve mailinize gönderilen güvenlik bağlantısına tıklayarak aktivasyon işleminizi gerçekleştiriniz.");
                //CustomizeControl1.StatusText = string.Format("<a rel=\"nofollow\" class=\"toolTip\" title=\"Kullanıcı girişi yapmak için tıkla!\" href=\"{0}?go=login\">Giriş Ekranı</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a rel=\"nofollow\" class=\"toolTip\" title=\"Şifre hatırlatma ekranı için tıklayın.\" href=\"{0}?go=register&r=sifre\">Şifremi Unuttum</a>", Settings.VirtualPath);
                this.Page.Title = "Yeni Aktivasyon Kodu Talep Formu";
                break;

            default:
                CustomizeControl1.MessageText  = MessageBox.UnSuccessful();
                CustomizeControl1.PanelVisible = false;
                return;
            }
            TextBox txt = new TextBox();

            txt.ID        = "Mail";
            txt.MaxLength = 60;
            txt.CssClass  = "form-control";
            txt.TextMode  = TextBoxMode.Email;
            CustomizeControl1.AddControl("Mail", txt);
            CustomizeControl1.SubmitClick += new CustomizeControl.ButtonEvent(CustomizeControl1_SubmitClick);
            base.OnInit(e);
        }