Re: Active Directory vs SqlServer which way to go?

From: Jan Peter Stotz (jp_news_at_gmx.de)
Date: 11/04/05


Date: Fri, 4 Nov 2005 10:51:41 +0100

Patrick.O.Ige schrieb:

> If Not (User.IsInRole("HR")) And Not (User.IsInRole("Managers")) Then
> ' Display the Button
> Else
> ' Don't display it!
> End If

> The badside to these methods is that if you are calling a method several
> times from different applications, you will need to repeat the logic all
> the time. How can i do it declaratively using Active Directory.
> I know if i use a database with stored procedures that would be a benefit.
> Any thoughts?

You can create a custom control button that only shows up if the user is in
a role specified by a new property of the control. I created a
button-control and a panel-control wich work this way. This makes it very
easy to hide and show role-specific parts of a page.

Jan


Loading