Esempio n. 1
0
    protected void Login1_LoggedIn(object sender, EventArgs e)
    {
        string strUserName = Login1.UserName.ToString();

        VCARD.DataAccess.SECURITY             _SECURITY      = new VCARD.DataAccess.SECURITY();
        VCARD.DataAccess.SECURITY.LogInResult enmLogInResult = _SECURITY.CheckUserLogIn(strUserName);
    }
Esempio n. 2
0
    protected void Login1_LoggedIn(object sender, EventArgs e)
    {
        string strUserName = Login1.UserName.ToString();

        VCARD.DataAccess.SECURITY             _SECURITY      = new VCARD.DataAccess.SECURITY();
        VCARD.DataAccess.SECURITY.LogInResult enmLogInResult = _SECURITY.CheckUserLogIn(strUserName);

        //if (Context.User.Identity.Name == "Adminstrator")
        //{
        //    Response.Redirect("~/Pages/Home.aspx");
        //}

        if (Page.User.Identity.IsAuthenticated && !(string.IsNullOrEmpty(Request.Params["ReturnUrl"])))
        {
            Response.Redirect("~/Pages/Home.aspx");
        }
    }