protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UidClienteMaster"] != null)
            {
                ViewState["UidClienteLocal"] = Session["UidClienteMaster"];
            }
            else
            {
                ViewState["UidClienteLocal"] = Guid.Empty;
            }

            if (!IsPostBack)
            {
                ViewState["gvLigasGeneradas"] = SortDirection.Ascending;

                Session["ligasUrlsServices"]    = ligasUrlsServices;
                Session["pagosTarjetaServices"] = pagosTarjetaServices;

                ligasUrlsServices.ConsultarEstatusLiga(Guid.Parse(ViewState["UidClienteLocal"].ToString()));
                gvLigasGeneradas.DataSource = ligasUrlsServices.lsLigasUrlsGridViewModel;
                gvLigasGeneradas.DataBind();
            }
            else
            {
                ligasUrlsServices    = (LigasUrlsServices)Session["ligasUrlsServices"];
                pagosTarjetaServices = (PagosTarjetaServices)Session["pagosTarjetaServices"];

                pnlAlert.Visible     = false;
                lblMensajeAlert.Text = "";
                divAlert.Attributes.Add("class", "alert alert-danger alert-dismissible fade");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UidFranquiciaMaster"] != null)
            {
                ViewState["UidFranquiciaLocal"] = Session["UidFranquiciaMaster"];
            }
            else
            {
                ViewState["UidFranquiciaLocal"] = Guid.Empty;
            }

            if (!IsPostBack)
            {
                ViewState["gvLigasGeneradas"] = SortDirection.Ascending;

                Session["ligasUrlsServices"]    = ligasUrlsServices;
                Session["pagosTarjetaServices"] = pagosTarjetaServices;

                ligasUrlsServices.ConsultarEstatusLigaFranquicia(Guid.Parse(ViewState["UidFranquiciaLocal"].ToString()));
                gvLigasGeneradas.DataSource = ligasUrlsServices.lsLigasUrlsGridViewModel;
                gvLigasGeneradas.DataBind();
            }
            else
            {
                ligasUrlsServices    = (LigasUrlsServices)Session["ligasUrlsServices"];
                pagosTarjetaServices = (PagosTarjetaServices)Session["pagosTarjetaServices"];
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UidUsuarioMaster"] != null)
            {
                ViewState["UidUsuarioLocal"] = Session["UidUsuarioMaster"];
            }
            else
            {
                ViewState["UidUsuarioLocal"] = Guid.Empty;
            }

            if (!IsPostBack)
            {
                tmValidar.Enabled = false;

                ViewState["gvLigasGeneradas"] = SortDirection.Ascending;

                Session["ReporteLigasUsuariosligasUrlsServices"]    = ligasUrlsServices;
                Session["ReporteLigasUsuariospagosTarjetaServices"] = pagosTarjetaServices;
                Session["ReporteLigasUsuariospromocionesServices"]  = promocionesServices;

                ligasUrlsServices.ConsultarLigaUsuarioFinal(Guid.Parse(ViewState["UidUsuarioLocal"].ToString()));
                gvLigasGeneradas.DataSource = ligasUrlsServices.lsLigasUsuariosFinalGridViewModel;
                gvLigasGeneradas.DataBind();
            }
            else
            {
                ligasUrlsServices    = (LigasUrlsServices)Session["ReporteLigasUsuariosligasUrlsServices"];
                pagosTarjetaServices = (PagosTarjetaServices)Session["ReporteLigasUsuariospagosTarjetaServices"];
                promocionesServices  = (PromocionesServices)Session["ReporteLigasUsuariospromocionesServices"];

                pnlAlert.Visible     = false;
                lblMensajeAlert.Text = "";
                divAlert.Attributes.Add("class", "alert alert-danger alert-dismissible fade");
            }
        }