User.IsInRole
From: Colin (colinjwhite74@hotmail.com)
Date: 06/21/02
- Next message: Justin: "<form action=https ... in ASP.NET"
- Previous message: Barry Young: "Could not delete from specified tables.... Jet 4.0"
- Next in thread: Jason Watts: "Re: User.IsInRole"
- Reply: Jason Watts: "Re: User.IsInRole"
- Reply: Willy Denoyette [MVP]: "Re: User.IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Colin" <colinjwhite74@hotmail.com> Date: Thu, 20 Jun 2002 18:47:38 -0700
I have the following setup:
-IIS Security = NT Authentication
-web.config = <identity impersonate = "true" />
running "Response.Write(User.Identity.Name)"
will return (mydomain\login)
I am an admin on the machine. If I run
"Response.Write(User.Isinrole("Administrators"))"
it returns false
I am ultimately trying to block visibility and disable
certain controls based on the user. I have a "Managers"
group on the webserver, but I cannot seem to get my app
to recognize that the user is part of this group using
the above method. ???????????? Can anyone shed some more
light on how to go about this? Thanks :)
- Next message: Justin: "<form action=https ... in ASP.NET"
- Previous message: Barry Young: "Could not delete from specified tables.... Jet 4.0"
- Next in thread: Jason Watts: "Re: User.IsInRole"
- Reply: Jason Watts: "Re: User.IsInRole"
- Reply: Willy Denoyette [MVP]: "Re: User.IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|