LoginView issues again

Discussion in 'ASP .Net' started by Jeff, Sep 24, 2008.

  1. Jeff

    Jeff Guest

    Hi

    ASP.NET 2.0

    I'm about to start developing a website using asp.net 2.0. The webpages will
    display different info determined if the user is authenticated or not. So if
    the the user isn't authenticated it will for example display a login window,
    and if authenticated display something else.

    So I'm wondering if this can be done using LoginView when not using the
    Membership provided by asp.net 2.0 ?
    If possible then how, you got any links to articles about this issue?

    Best Regards!
     
    Jeff, Sep 24, 2008
    #1
    1. Advertising

  2. No, it is not possible. But you do not have to use the default method
    Microsoft has of using the Membership. You can, if you have a completely
    different schema/method create your own provider. Then you can use the
    LoginView.

    Here is a good set of articles:
    http://aspnet.4guysfromrolla.com/articles/120705-1.aspx

    For an example, I would look at this:
    http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx

    There is also a sample membership provider linked off this article. David
    Hayden has also written an article, but his is extremely simple, so it could
    be insulting to read something so simple if you already have a good grasp of
    ..NET (great for beginners to the provider model, however). There are also
    articles on 15 seconds, devx, etc.

    The custom membership model is one I use often on sites, as the
    ASPNET_Profile table is a nasty way of storing extra information to adorn a
    user object.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog
    http://feeds.feedburner.com/GregoryBeamer#

    or just read it:
    http://feeds.feedburner.com/GregoryBeamer

    ********************************************
    | Think outside the box! |
    ********************************************
    "Jeff" <> wrote in message
    news:...
    > Hi
    >
    > ASP.NET 2.0
    >
    > I'm about to start developing a website using asp.net 2.0. The webpages
    > will display different info determined if the user is authenticated or
    > not. So if the the user isn't authenticated it will for example display a
    > login window, and if authenticated display something else.
    >
    > So I'm wondering if this can be done using LoginView when not using the
    > Membership provided by asp.net 2.0 ?
    > If possible then how, you got any links to articles about this issue?
    >
    > Best Regards!
    >
     
    Cowboy \(Gregory A. Beamer\), Sep 24, 2008
    #2
    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. CJ Taylor

    LoginView Type Control

    CJ Taylor, Nov 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    400
    Curt_C [MVP]
    Nov 15, 2004
  2. RedEye

    ASP.NET v2 LoginView

    RedEye, Jul 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    571
    RedEye
    Jul 8, 2005
  3. Davie
    Replies:
    5
    Views:
    22,143
    Petulka77
    Sep 30, 2007
  4. ad
    Replies:
    8
    Views:
    11,035
    blad3runn69
    Jun 10, 2010
  5. Jeff

    LoginView issues

    Jeff, Sep 14, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    367
    Hillbilly
    Sep 14, 2008
Loading...

Share This Page