Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Should I use a Role or Personalization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry Bud - 26 Jun 2007 18:55 GMT
We have a time and project tracking system.  In short, only certain
users will be entering time, while everyone has access to the project
listing side of things.  I need to make sure those who enter time
actually have entered it for each week... sooo.....  how would you
suggest I track who enters time?  Should I just create a role, named
"Timesheet users", for example, and place users in there, or should I
create a personalization property named "TimesheetUser" and flag each
user that way?

Does it matter?
Masudur - 26 Jun 2007 19:03 GMT
> We have a time and project tracking system.  In short, only certain
> users will be entering time, while everyone has access to the project
[quoted text clipped - 6 lines]
>
> Does it matter?

"AspnetRoleProvider is there already ..."
so better use it... just check with
System.Web.Security.Roles.IsUserInRole();
but depending your application design  you can also you
personalization....
Peter Bradley - 26 Jun 2007 20:54 GMT
Ysgrifennodd Masudur:

> "AspnetRoleProvider is there already ..."
> so better use it... just check with
> System.Web.Security.Roles.IsUserInRole();
> but depending your application design  you can also you
> personalization....

I agree, although I use attributes rather than code wherever possible.
E.g. (taken at random from what's currently open in Konq file explorer):

[PrincipalPermission(SecurityAction.Demand, Authenticated=true,
Role="admin")]
protected void Page_Load(object sender, EventArgs e)
{
    ...
}

Peter

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.