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. Advertisements

  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. Advertisements

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. amit
    Replies:
    0
    Views:
    525
  2. che
    Replies:
    2
    Views:
    683
  3. abcd

    Importing again and again

    abcd, Jun 8, 2006, in forum: Python
    Replies:
    9
    Views:
    530
    Maric Michaud
    Jun 9, 2006
  4. Replies:
    4
    Views:
    559
  5. Jeff

    LoginView issues

    Jeff, Sep 14, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    451
    Hillbilly
    Sep 14, 2008
  6. Ò»Ê×Ê«

    A design problem I met again and again.

    Ò»Ê×Ê«, Apr 1, 2009, in forum: Python
    Replies:
    24
    Views:
    945
    Dennis Lee Bieber
    Apr 4, 2009
  7. Alexander Burger

    jsf 2.0 datatable reload again and again

    Alexander Burger, Sep 23, 2010, in forum: Java
    Replies:
    14
    Views:
    5,062
    Arved Sandstrom
    Sep 26, 2010
  8. Junkone
    Replies:
    2
    Views:
    152
    Junkone
    Sep 25, 2008
Loading...