LoginView issues again

J

Jeff

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!
 
C

Cowboy \(Gregory A. Beamer\)

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top