Re: Displaying different content on one Asp.net page(populated from a DB)
From: naijacoder naijacoder (naijacoder_at_toughguy.net)
Date: 08/30/04
- Next message: Nathan Dawson: "Use RegEx with a Web Control"
- Previous message: Hermit Dave: "Re: error message: Unable to start debugging on the web server""
- In reply to: Steve C. Orr [MVP, MCSD]: "Re: Displaying different content on one Asp.net page(populated from a DB)"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Aug 2004 23:52:51 -0700
Thx alot but i have a question for you:-
can't get WindowsPrincipal.IsInRole() to work for me when using
Windows Authentication. Here's a snippit of code from my C#
codebehind page:
WindowsPrincipal wp = new WindowsPrincipal(
WindowsIdentity.GetCurrent() );
lblUser.Text = wp.Identity.Name;
Label1.Text = wp.IsInRole(@"DOMAIN\group").ToString();
where "DOMAIN\group" is a valid group name. The username shows up
correctly as "DOMAIN\username" but for any non-builtin roles,
IsInRole() returns false. Does anyone have suggestions as to why this
is not working?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Nathan Dawson: "Use RegEx with a Web Control"
- Previous message: Hermit Dave: "Re: error message: Unable to start debugging on the web server""
- In reply to: Steve C. Orr [MVP, MCSD]: "Re: Displaying different content on one Asp.net page(populated from a DB)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|