Return to login page RRS feed

  • Question

  • User2048362298 posted


    I setup the time tracker starter kit on MS Windows 2000 Server SP4 + .Net Framework 2.0 + MS SQL Server Express 2005. I did it with MS Visual Studio 2005 as a new web site template. I create a new user but when I try to login I return immediately to the login page ! The authentication is the default "forms". Maybe the problem is that the machine is a Backup Domain Controller of a domain ?

    Any suggestion will be appreciated !






    Tuesday, May 30, 2006 12:06 PM

All replies

  • User-1639143169 posted

    If the login page and control do not have a ReturnUrl assigned, it iwll jsut go back to itself.

    In my login page, i check the control in my login page onload....

    if (!Page.User.Identity.IsAuthenticated)


    Login l = (Login)LoginView1.FindControl("loginAnon");

    SetDefaultButton(l.ClientID + "_LoginButton");

    string destination;



    destination = Page.Request.UrlReferrer.AbsolutePath;

    if (string.IsNullOrEmpty(destination))

    destination = Request.QueryString["ReturnUrl"].ToString();




    destination = String.Empty;


    if (destination.Length > 0)

    l.DestinationPageUrl = destination;


    l.DestinationPageUrl = GBMConfig.GetValue("SiteRedirect.UserWithCookie.URL");


    Perhaps there is a more direct way to handle t


    Tuesday, May 30, 2006 1:34 PM
  • User555306248 posted
    Check in DB whether is any user is created or not ?
    Saturday, April 28, 2007 12:41 AM