protected void BtnUpdate_Click(object sender, EventArgs e)
    {
        MoviesLogicLayer mobile = new MoviesLogicLayer();

        mobile.MoviesId = hfScreenId.Value.ToString();
        String Id = System.IO.Path.GetExtension(FUMovieImage.FileName).ToLower();

        mobile.Stopbooking = Convert.ToDateTime(TxtMovieBookingStopDate.Text.Trim()).ToString("yyyy-MMM-dd");
        mobile.ExpiryDate  = Convert.ToDateTime(TxtmovieOutDate.Text.Trim()).ToString("yyyy-MMM-dd");
        if (Id != "")
        {
            mobile.MoviesDesc = Id;
        }
        else
        {
            mobile.MoviesDesc = ViewState["MovieImage"].ToString();
        }
        mobile.MoviesName   = TxtMoviesName.Text.Trim();
        mobile.RealsieDate  = Convert.ToDateTime(TxtRealseDate.Text.Trim()).ToString("yyyy-MMM-dd");
        mobile.ScreenId     = ddlScreenName.SelectedValue.ToString();
        mobile.Startbooking = Convert.ToDateTime(TxtmovieBookingStartDate.Text.Trim()).ToString("yyyy-MMM-dd");
        mobile.EntryDate    = DateTime.Now.ToString("yyyy-MMM-dd");
        mobile.Entryby      = "1";
        mobile.UpdateDate   = DateTime.Now.ToString("yyyy-MMM-dd");
        mobile.Updateby     = "1";

        LblMessage.Text = MoviesLogicLayer.updateMoviesDetials(mobile);
        if (Id != "")
        {
            FUMovieImage.SaveAs(MapPath("~/Admin//MovieImage//" + hfScreenId.Value + Id));
        }
        else
        {
        }
        RequiredFieldValidator2.Visible = false;
        GridFill();
        Clear();
    }
    protected void BtnSave_Click(object sender, EventArgs e)
    {
        if (BtnSave.Text == "SAVE")
        {
            MoviesLogicLayer mobile = new MoviesLogicLayer();
            String           Id     = System.IO.Path.GetExtension(FUMovieImage.FileName).ToLower();
            mobile.Stopbooking  = Convert.ToDateTime(TxtMovieBookingStopDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.ExpiryDate   = Convert.ToDateTime(TxtmovieOutDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.MoviesDesc   = Id;
            mobile.MoviesName   = TxtMoviesName.Text.Trim();
            mobile.RealsieDate  = Convert.ToDateTime(TxtRealseDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.ScreenId     = ddlScreenName.SelectedValue.ToString();
            mobile.Startbooking = Convert.ToDateTime(TxtmovieBookingStartDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.EntryDate    = DateTime.Now.ToString("yyyy-MMM-dd");
            mobile.Entryby      = "1";
            mobile.UpdateDate   = DateTime.Now.ToString("yyyy-MMM-dd");
            mobile.Updateby     = "1";
            String str = MoviesLogicLayer.InsertMoviesDetials(mobile);
            if (str.Length < 8)
            {
                FUMovieImage.SaveAs(MapPath("~/Admin//MovieImage//" + str + Id));
                LblMessage.Text = "Successfully Save";
            }
            else
            {
                LblMessage.Text = "Detail Not Saved...";
            }
            GridFill();
            Clear();
        }
        else
        {
            MoviesLogicLayer mobile = new MoviesLogicLayer();
            mobile.MoviesId = hfScreenId.Value.ToString();
            String Id = System.IO.Path.GetExtension(FUMovieImage.FileName).ToLower();
            mobile.Stopbooking = Convert.ToDateTime(TxtMovieBookingStopDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.ExpiryDate  = Convert.ToDateTime(TxtmovieOutDate.Text.Trim()).ToString("yyyy-MMM-dd");
            if (Id != "")
            {
                mobile.MoviesDesc = Id;
            }
            else
            {
                mobile.MoviesDesc = ViewState["MovieImage"].ToString();
            }
            mobile.MoviesName   = TxtMoviesName.Text.Trim();
            mobile.RealsieDate  = Convert.ToDateTime(TxtRealseDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.ScreenId     = ddlScreenName.SelectedValue.ToString();
            mobile.Startbooking = Convert.ToDateTime(TxtmovieBookingStartDate.Text.Trim()).ToString("yyyy-MMM-dd");
            mobile.EntryDate    = DateTime.Now.ToString("yyyy-MMM-dd");
            mobile.Entryby      = "1";
            mobile.UpdateDate   = DateTime.Now.ToString("yyyy-MMM-dd");
            mobile.Updateby     = "1";

            LblMessage.Text = MoviesLogicLayer.updateMoviesDetials(mobile);
            if (Id != "")
            {
                FUMovieImage.SaveAs(MapPath("~/Admin//MovieImage//" + hfScreenId.Value + Id));
            }
            else
            {
            }
            GridFill();
            Clear();
        }
    }