protected void Page_Load(object sender, EventArgs e)
        {
            int bolum_id;

            kullanici = Session["KullaniciAdi"];
            if (kullanici == null)
            {
                Response.Write("<script>alert('Oturum Süreniz Geçmiş!');</script>");
                System.Threading.Thread.Sleep(1000);
                Server.Transfer("Login.aspx");
            }
            BLL.Kullanici blkullanici = new BLL.Kullanici();
            BLL.Bolum     blbolum     = new BLL.Bolum();
            string        temp        = kullanici.ToString();

            labelOgrno.Text  = blkullanici.Getir1(temp).ogrenci_no;
            bolum_id         = blkullanici.Getir1(temp).bolum_id;
            labelEposta.Text = blkullanici.Getir1(temp).eposta;
            labelBolum.Text  = blbolum.Getir(bolum_id).bolum_adi;
            Labeladsoy.Text  = blkullanici.Getir1(temp).ad + blkullanici.Getir1(temp).soyad;
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            kullanici = Session["KullaniciAdi"];
            if (kullanici == null)
            {
                Response.Write("<script>alert('Oturum Süreniz Geçmiş!');</script>");
                System.Threading.Thread.Sleep(1000);
                Server.Transfer("Login.aspx");
            }
            staj_id = Convert.ToInt32(Session["stj_id"]);
            BLL.Kullanici blkullanici = new BLL.Kullanici();
            BLL.Staj      blstaj      = new BLL.Staj();
            BLL.Bolum     blbolum     = new BLL.Bolum();
            ogrenci = blstaj.ListeGetir2(staj_id).FirstOrDefault().tc_no;
            string temp = ogrenci;

            LabelOgrNo.Text = blkullanici.Getir(temp).ogrenci_no;
            bolum_id        = blkullanici.Getir(temp).bolum_id;
            LabelBolum.Text = blbolum.Getir(bolum_id).bolum_adi;
            LabelAdsoy.Text = blkullanici.Getir(temp).ad + blkullanici.Getir(temp).soyad;
        }