RedirectFromLoginPage

Discussion in 'ASP .Net' started by Jl_G_0, Aug 13, 2007.

  1. Jl_G_0

    Jl_G_0 Guest

    Hey all, I got a question and hope someone can help me here.

    I have a aspx page that reads from a excel sheet logins, and checks
    the user login, if its OK, it allow the user to access pages on a /
    restrict folder. It almost works, but here's what happens:
    I have to place the login.aspx outside the restricted folder in
    order for it read the USERNAME from the user browser, otherwise it
    returns blank, and I wonder why... (the webserver is IIS5 running on
    WIN2000 Server, with Windows Authentication set).
    Since the login.aspx is outside the restricted folder, it checks OK
    and try to RedirectFromLoginPage(userid, true). But it says file not
    found after a while.

    Im guessing the problem is when redirecting, since the login page is
    outside the restrict folder, it fails. But if I place the login page
    inside the folder, I cant get the username.

    Anyone knows what I should do/search ? Thanks.
    Jl_G_0, Aug 13, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gan
    Replies:
    2
    Views:
    462
    venkat
    Jun 27, 2003
  2. TaeHo Yoo
    Replies:
    1
    Views:
    515
    Teemu Keiski
    Jul 9, 2003
  3. Lauchlan M
    Replies:
    2
    Views:
    488
    John Saunders
    Aug 17, 2003
  4. Eric Broers
    Replies:
    1
    Views:
    800
    Steve C. Orr [MVP, MCSD]
    Nov 27, 2003
  5. .NET Follower
    Replies:
    2
    Views:
    652
    .NET Follower
    Feb 4, 2004
Loading...

Share This Page