What is the correct or best way to find and reference the User.Identity.
I'm creating a control to handle login functions for a site.
(need more flexability than the builting one)
Thanks
KES

Signature
Share The Knowledge. I need all the help I can get and so do you!
David R. Longnecker - 20 Jun 2007 20:40 GMT
KES-
By "find and reference" could you provide a bit more detail on how you're
using it?
By adding a reference to System.Web.Security in your using (or Inherits)
statements, using the User object is as easy as:
lblUserName.Text = User.Identity.Name;
Now, are you wanting other features (you mentioned needing more flexibility)
such as Active Directory lookups and such out of the object or ... ?
-dl
--
David R. Longnecker
http://blog.tiredstudent.com
YD> What is the correct or best way to find and reference the
YD> User.Identity. I'm creating a control to handle login functions for
YD> a site.
YD>
YD> (need more flexability than the builting one)
YD> Thanks
YD> KE
Yankee Imperialist Dog - 20 Jun 2007 21:05 GMT
ok i got the answere real fast
If Me.Page.User.Identity.IsAuthenticated Then ....

Signature
Share The Knowledge. I need all the help I can get and so do you!
> What is the correct or best way to find and reference the User.Identity.
> I'm creating a control to handle login functions for a site.
>
> (need more flexability than the builting one)
> Thanks
> KES