protected void Page_Load(object sender, EventArgs e) { string giren = Session["girenKullaniciAdi"].ToString(); DataSet ds = Oneri3.Oneri1DenGelenleriCek(giren); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); }
protected void gVOnerilenKitaplar_Init(object sender, EventArgs e) { string girenKullaniciAdi = Session["girenKullaniciAdi"].ToString(); if (Oneri3.KitapIDleriniCek(girenKullaniciAdi).Count != 0) { DataSet ds = Oneri3.Onerilenler(girenKullaniciAdi); gVOnerilenKitaplar.DataSource = ds.Tables[0]; gVOnerilenKitaplar.DataBind(); } else { lblSonuc.Text = "Sisteme hoş geldiniz. Öneri sistemi hesap hareketlerinize göre çalıcaktır. Bol şans :)"; } }