Displaying different content on one Asp.net page(populated from a DB)

  • Thread starter Thread starter naijacoder naijacoder
  • Start date Start date
N

naijacoder naijacoder

I want to have a asp page that would be displaying different contents
depending on the user that logged in.
And the data would be populated from the Database!
Any ideas on how to do this
 
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?
 
Back
Top