Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         AlertaGeneral = new List <string>();
         if (!IsPostBack)
         {
             Session["PreguntaReto"] = null;
             if (Request.Params["confirmacionalta"] != null)
             {
                 string[] values = Request.Params["confirmacionalta"].Split('_');
                 if (!_servicioUsuarios.ValidaConfirmacion(int.Parse(values[0]), values[1]))
                 {
                     Response.Redirect(ResolveUrl("~/Default.aspx"));
                 }
                 CargaTelefonosObligatorios(int.Parse(values[0]));
             }
         }
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         AlertaGeneral = _lstError;
     }
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         AlertaGeneral = new List <string>();
         if (Request.Params["confirmacionalta"] != null)
         {
             string[] values = Request.Params["confirmacionalta"].Split('_');
             if (!_servicioUsuarios.ValidaConfirmacion(int.Parse(values[0]), values[1]))
             {
                 AlertaGeneral = new List <string> {
                     "Link Invalido !!!"
                 };
             }
         }
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         AlertaGeneral = _lstError;
     }
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             GeneraCoockie();
         }
         HttpCookie myCookie = Request.Cookies[FormsAuthentication.FormsCookieName];
         if (myCookie != null && Session["UserData"] != null)
         {
             Response.Redirect("~/Users/DashBoard.aspx");
         }
         Alerta = new List <string>();
         if (Request.Params["confirmacionalta"] != null)
         {
             string[] values = Request.Params["confirmacionalta"].Split('_');
             if (!_servicioUsuarios.ValidaConfirmacion(int.Parse(values[0]), values[1]))
             {
                 Alerta = new List <string> {
                     "Link Invalido !!!"
                 };
             }
         }
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         Alerta = _lstError;
     }
 }