Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage = (MP_Login)Page.Master;
            if (!IsPostBack)
            {
                // Reset Cookie Inicio
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "setCookieInicio", "setCookie('tab', 'inicio');", true);

                if (Request.QueryString["c"] != null)
                {
                    String codigoConfirmacion = Request.QueryString["c"].ToString();
                    if (RegistroService.ConfirmarCandidato(codigoConfirmacion))
                    {
                        MasterPage.ShowMessage("Aviso", "Su cuenta ha quedado confirmada.");
                    }
                    else
                    {
                        MasterPage.ShowMessage("Error", "Código de confirmación inválido.");
                    }
                }
            }
            else
            {
                // Set Selected tab
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "setSelectedTab", "autoChangeTab();", true);
            }
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     MasterPage = (MP_Login)Page.Master;
 }