Esempio n. 1
0
        public void Doldur()
        {
            SubjectRepository konuislem = new SubjectRepository();

            GridviewPaylasimlar.DataSource = sunumislem.HepsiniGetir();
            GridviewPaylasimlar.DataBind();
        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         CollectionPager1.DataSource    = islem.HepsiniGetir();
         CollectionPager1.BindToControl = dtVeri;
         dtVeri.DataSource = CollectionPager1.DataSourcePaged;
         dtVeri.DataBind();
     }
 }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["StudentID"] != null)
                {
                    int               gelenid      = Convert.ToInt32(Session["StudentID"]);
                    Student           gelenogr     = new Student();
                    StudentRepository islemogrenci = new StudentRepository();
                    gelenogr = islemogrenci.TekGetir(gelenid);
                    //List<Presentation> gelenlist= islem.HepsiniGetir().Select(p => p.ClassroomID == gelenogr.Classrooms.Select(x=> x.Students.Select(s=> s.Id == gelenid)).ToList()).ToList();

                    var gelenlist = from prsen in islem.HepsiniGetir()
                                    where prsen.Student.Classrooms.Any(x => x.Id == prsen.ClassroomID)
                                    select prsen;

                    CollectionPager1.DataSource    = gelenlist;
                    CollectionPager1.BindToControl = dtVeri;
                    dtVeri.DataSource = CollectionPager1.DataSourcePaged;
                    dtVeri.DataBind();
                }
            }
        }