protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["email"] != null && Request.QueryString["tkn"] != null) { string email = Request.QueryString["email"]; string token = Request.QueryString["tkn"]; UserFactory uf = new UserFactory(cnnStr); User u = uf.GetByEmail(email); if (u != null) { if (u.token == token) { uf.ActivateByEmail(email); } } } }