Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            List<int> ListIds = new List<int>();
            int loginID;
            string code64Encoded = Request.QueryString["code"];
            if (code64Encoded == null)
                throw new Exception("No Query String");
            ListIds = GetUserLoginIDFromQueryString(code64Encoded);

            // make DB call to change the Login status
            PostAroundServiceClient client = new PostAroundServiceClient();
            int result = client.ActivateUserLoginByLoginID(ListIds[1], ListIds[0]);
            client.Close();

            ltrlResult.Text = "Activation Successfully Completed !";

            string funcCall = "<script language='javascript'>setTimeout(function(){window.location = 'http://postaround.me';},3000);</script>";
            ClientScript.RegisterStartupScript(this.GetType(), "redirect", funcCall);

        }
        catch (Exception ex)
        {
            Response.Write("Error: " + ex.Message);
            Response.End();
        }
    }