protected void FillCinemas(object sender, EventArgs e)
        {
            myDAL     objmyDAL = new myDAL();
            DataTable GetData  = new DataTable();
            int       AdminID  = (int)Session["ID"];

            objmyDAL.AdminCinemas(AdminID, ref GetData);
            GetData.Columns.Add("Cinema", typeof(string), "CinemaID + '    ' + CinemaName + '   ' + Locations");
            CinemaGrid.DataSource = GetData;
            if (GetData.Rows.Count > 0)
            {
                CinemaGrid.DataBind();
            }
        }
Ejemplo n.º 2
0
        protected void ListItems(object sender, EventArgs e)
        {
            myDAL     objmyDal = new myDAL();
            DataTable GetData  = new DataTable();
            string    CinemaID = DropDownList1.Text.ToString();
            int       found    = objmyDal.FoodItemsAvailable(CinemaID, ref GetData);

            if (found != 1)
            {
                Message.Text = "There was some error!";
            }
            else
            {
                Message.Text          = "Following items are found:";
                CinemaGrid.DataSource = GetData;
                if (GetData.Rows.Count > 0)
                {
                    CinemaGrid.DataBind();
                }
            }
        }
Ejemplo n.º 3
0
        protected void ShowCinemas(object sender, EventArgs e)
        {
            myDAL     objmyDAl = new myDAL();
            DataTable DT       = new DataTable();
            int       found;

            found = objmyDAl.AllCinemas(ref DT);
            if (found != 1)
            {
                Message.Text = "There was some error!";
            }
            else
            {
                Message.Text          = "Following cinemas are found:";
                CinemaGrid.DataSource = DT;
                if (DT.Rows.Count > 0)
                {
                    CinemaGrid.DataBind();
                }
            }
        }