Re: redirecting to specific webpage after logging in - ASP.NET 2.0

From: Devante (Devante_at_discussions.microsoft.com)
Date: 01/21/05

  • Next message: Peter Blum: "Re: customizing validation script-injection error page."
    Date: Fri, 21 Jan 2005 09:47:04 -0800
    
    

    Well I am able to have the user login and they get redirected back to the
    default.aspx page saying "You are logged in, Welcome [username]".

    Now here is what I would like to happen:

    User goes to http://domain.com/userlogin/default.aspx (running ASP.NET 2.0)
    user logins, authenticates succesfully and gets sent to a page which has
    certain personalised information for them but also has a link to enter their
    blog (http://domain.com/dottextweb/user running ASP.NET 1.1), now they won't
    be administering their own blog though, that gets looked after by me, so they
    don't need to authenticate when entering their own blog. Now I have created
    some additional fields in the AspNetDB in aspnet_users table. Being that I am
    using the AspNetAccessProvider, would it be better to use a SQL DB to store
    all user information? Also, if I stick with the current AspNetAccessProvider,
    how do I have a url (to the blog) come up as a link on the page? How do I
    prevent other users from seeing other users information upon logging in? Is
    it a Select Distinct .... type statement?

    Please bear with me I am still very new to this but learnign so much from
    all the questions and answers I have read on this newsgroup.

    Any help would be greatly appreciated Paul,

    Thank you,

    Devante

    "Paul Clement" wrote:

    > On Thu, 20 Jan 2005 17:09:04 -0800, "Devante" <Devante@discussions.microsoft.com> wrote:
    >
    > ¤ Hi,
    > ¤
    > ¤ I am new to ASP.NET and have been developing a database driven website,
    > ¤ which until now has been painless. The one roadblock I am encountering is
    > ¤ using the login control.
    > ¤
    > ¤ What I would like to do is have a login page where a user enters their login
    > ¤ and password and when they authenticate successfully they get redirected in a
    > ¤ seperate browser window to their specific website.
    > ¤
    > ¤ e.g. user 1 logs in and gets redirected to http://www.domain.com/user1/
    > ¤ user 2 logs in and gets redirected to http://www.domain.com/user2/
    > ¤
    > ¤ I have managed to successfully follow a tutorial @
    > ¤ http://msdn2.microsoft.com/library/879kf95c.aspx
    > ¤
    > ¤ Can anyone please tell me if this is possible and how I can achieve this?
    > ¤
    >
    > Where in the login process are you stuck?
    >
    >
    > Paul ~~~ pclement@ameritech.net
    > Microsoft MVP (Visual Basic)
    >


  • Next message: Peter Blum: "Re: customizing validation script-injection error page."

    Relevant Pages

    • Re: Windows 2003 Federated Forst Trust
      ... # Jorge de Almeida Pinto # MVP Windows Server - Directory Services ... BLOG --> http://blogs.dirteam.com/blogs/jorge/default.aspx ... But user@xxxxxxxxxxx can't login into domainB.com from either workstation ... I was testing with a test user that belongs to Domain A and trying ...
      (microsoft.public.windows.server.active_directory)
    • Re: Login script loging a user out based on day and time...
      ... however I am currently bound by using a login batch ... VBScript & Windows PowerShell Training - ... blog: http://jdhitsolutions.blogspot.com ...
      (microsoft.public.windows.server.scripting)
    • Re: URGENT - SPS & WSS Service Pack 1
      ... Check the Login that you are logged in to the Server. ... It must be a domain admin account. ... Here is a link to a blog on how to overcome this issue: ...
      (microsoft.public.sharepoint.portalserver)
    • Re: Enter key problem
      ... I believe Hanselman' blog had something about this. ... Girish Bharadwaj ... > I want to make the page request for either Login on Search depending ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: What to do with Authentication/Session Timeout?
      ... Session timeout occurs, all of the user information will be lost. ... I've tried doing a Reponse.Redirect call back to my login page whenever I ...
      (microsoft.public.dotnet.framework.aspnet)