Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string code = Request.QueryString["code"];

        if (code != null && code.Length == 16)
        {
            SQLHandler sql = new SQLHandler();
            if (!sql.ActivateAccount(code))
            {
                statusLabel.Text = "Invalid or expired verificationcode";
            }
            else
            {
                statusLabel.Text = "Account activated!";
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string code = Request.QueryString["code"];

        if(code!= null && code.Length == 16)
        {
            SQLHandler sql = new SQLHandler();
            if(!sql.ActivateAccount(code))
            {
                statusLabel.Text = "Invalid or expired verificationcode";
            }
            else
            {
                statusLabel.Text = "Account activated!";
            }
        }
    }