Elton,
Thanks for that. Unfortunately it doesnt seem to work.
ive tried the following code..
if(Page.User.IsInRole(role))
btnNewProject.Disabled = false;
else
btnNewProject.Disabled = true;
Where role is "mydomain.com\TestGroup" and the logged in user is a member of
TestGroup. When I run the code, the button is always disabled! Am I missing
something?!
Cheers
Dan
"Elton Wang" wrote:
You can use
Page.User.IsInRole(@"DomainName\GroupName");
HTH
Elton Wang
el********@hotmail.com
-----Original Message-----
Hi guys
I'm using Windows Auth and want to check that the logged
in user is part ofa specific group in order to limit access to some part of
the site.
How do I do this?
Cheers
Dan
.