Beispiel #1
0
        private void FillSubData()
        {
            int id = Convert.ToInt32(tbID.Text);

            CntID = id;
            using (ClubDBEntities club = new ClubDBEntities())
            {
                pnlSub.Visible    = true;
                gvSubs.DataSource = club.getSubs(id).OrderByDescending(a => a.SubDate).ToList();
                gvSubs.DataBind();
                pnlSubDetails.Visible = false;
                pnlVisit.Visible      = false;
            }
        }