protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ddlCity.DataSource     = CityLogicLayer.GetAllCitySelect();
            ddlCity.DataTextField  = "CityName";
            ddlCity.DataValueField = "CityId";
            ddlCity.DataBind();

            CityWiseData();
            if (Session["UserId"] == null)
            {
                ALogin.Visible  = true;
                Lbl2.Visible    = true;
                ASignup.Visible = true;
                lbl4.Visible    = false;
                ALogOut.Visible = false;
                lbl3.Visible    = false;
            }
            else
            {
                ALogin.Visible       = false;
                Lbl2.Visible         = false;
                ASignup.Visible      = false;
                lbl4.Visible         = true;
                ALogOut.Visible      = true;
                lbl3.Visible         = true;
                lblUserSettings.Text = Convert.ToString(Session["UserName"]);
            }
        }
    }
 private void GridFill()
 {
     dt = TheatresLogicLayer.GetAllTheatresDetials();
     GridView1.DataSource = dt;
     GridView1.DataBind();
     ddlCity.DataSource     = CityLogicLayer.GetAllCitySelect();
     ddlCity.DataTextField  = "CityName";
     ddlCity.DataValueField = "CityId";
     ddlCity.DataBind();
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (Request.Cookies["City"] != null)
        //{
        //    DataTable CamaignDetail = CityLogicLayer.GetAllIDWiseCityDetials(Request.Cookies["City"].Value);
        //    if (CamaignDetail.Rows.Count > 0)
        //    {
        //        lnkbtnCityName.InnerText = CamaignDetail.Rows[0]["CityName"].ToString();
        //    }
        //    else
        //    {
        //        mp1.Show();
        //    }
        //}
        //else
        //{
        //    mp1.Show();
        //}

        if (!Page.IsPostBack)
        {
            ddlCity.DataSource     = CityLogicLayer.GetAllCitySelect();
            ddlCity.DataTextField  = "CityName";
            ddlCity.DataValueField = "CityId";
            ddlCity.DataBind();

            CityWiseData();
            if (Session["UserId"] == null)
            {
                ALogin.Visible  = true;
                Lbl2.Visible    = true;
                ASignup.Visible = true;
                lbl4.Visible    = false;
                ALogOut.Visible = false;
                lbl3.Visible    = false;
            }
            else
            {
                ALogin.Visible       = false;
                Lbl2.Visible         = false;
                ASignup.Visible      = false;
                lbl4.Visible         = true;
                ALogOut.Visible      = true;
                lbl3.Visible         = true;
                lblUserSettings.Text = Convert.ToString(Session["UserName"]);
            }



            //if (Request.Cookies["GadgetPlusCart"] != null)
            //{
            //    HttpCookie aCookie = Request.Cookies["GadgetPlusCart"];
            //    if (aCookie.Value != "")
            //    {
            //        string sProductID = aCookie.Value;
            //        string[] sArrProdID = sProductID.Split('~');
            //        lblCartItemCount.Text = Convert.ToString((sArrProdID.Length - 1) / 7);
            //    }

            //}
            //else
            //{
            //    lblCartItemCount.Text = "0";

            //}
        }
    }