protected void Page_Load(object sender, EventArgs e)
 {
     lblyazarSayisi.Text  = kullanicilar.YazarAdetDonder().ToString();
     lbluyeSayisi.Text    = kullanicilar.UyeAdetDonder().ToString();
     lblyorumSayisi.Text  = yorumlar.YorumSayisiDonder().ToString();
     lblGundemSayisi.Text = gundemler.GundemSayisiDonder().ToString();
     if (Request.Cookies["cerezDosyam"] != null)
     {
         HttpCookie cerezOku = Request.Cookies["cerezdosyam"];
         kullanicilar.mail      = cerezOku["mail"].ToString();
         AdministratorName.Text = kullanicilar.KullaniciAdGonder();
     }
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     lblUyeSayisi.Text    = kullanicilar.UyeAdetDonder().ToString();
     lblYazarSayisi.Text  = kullanicilar.YazarAdetDonder().ToString();
     lblGundemSayisi.Text = gundemler.GundemSayisiDonder().ToString();
     lblYorumSayisi.Text  = yorumlar.YorumSayisiDonder().ToString();
     if (Request.Cookies["cerezDosyam"] != null)
     {
         HttpCookie cerezOku = Request.Cookies["cerezdosyam"];
         kullanicilar.mail = cerezOku["mail"].ToString();
         int rolid = kullanicilar.RolidDonder();
         if (rolid == (int)Rolu.Yazar || rolid == (int)Rolu.Uye)
         {
             Response.Redirect("~/App/Default.aspx");
         }
         else
         {
             Response.Redirect("~/Admin/Yazarlar.aspx");
         }
     }
 }