Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > LoginView issues again

Reply
Thread Tools

LoginView issues again

 
 
Jeff
Guest
Posts: n/a
 
      09-24-2008
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!


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      09-24-2008
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!
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we set focus in UserName of a LoginView ad ASP .Net 8 06-10-2010 09:27 AM
LoginView issues Jeff ASP .Net 2 09-14-2008 05:13 PM
Accessing a control within LoginView Davie ASP .Net 5 09-29-2007 11:23 PM
ASP.NET v2 LoginView RedEye ASP .Net 0 07-08-2005 06:31 PM
LoginView Type Control CJ Taylor ASP .Net 1 11-15-2004 04:39 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57