Click here to Skip to main content
15,905,607 members
Home / Discussions / C#
   

C#

 
GeneralRe: CODE Pin
harold aptroot30-Dec-09 3:49
harold aptroot30-Dec-09 3:49 
GeneralRe: CODE Pin
Daniel Grunwald30-Dec-09 3:50
Daniel Grunwald30-Dec-09 3:50 
GeneralRe: CODE Pin
Renven30-Dec-09 4:03
Renven30-Dec-09 4:03 
GeneralRe: CODE Pin
Luc Pattyn30-Dec-09 4:38
sitebuilderLuc Pattyn30-Dec-09 4:38 
GeneralRe: CODE Pin
Daniel Grunwald30-Dec-09 4:42
Daniel Grunwald30-Dec-09 4:42 
GeneralRe: CODE Pin
Luc Pattyn30-Dec-09 4:58
sitebuilderLuc Pattyn30-Dec-09 4:58 
AnswerRe: Threads, speed up calculations Pin
#realJSOP30-Dec-09 2:27
professional#realJSOP30-Dec-09 2:27 
GeneralRe: Threads, speed up calculations Pin
Ben Fair30-Dec-09 3:19
Ben Fair30-Dec-09 3:19 
GeneralRe: Threads, speed up calculations Pin
Renven30-Dec-09 4:05
Renven30-Dec-09 4:05 
QuestionIntegrate sql server's Query Editor Window with C# Project Pin
Dot-Net-Dev30-Dec-09 0:50
Dot-Net-Dev30-Dec-09 0:50 
AnswerRe: Integrate sql server's Query Editor Window with C# Project Pin
Eddy Vluggen30-Dec-09 4:03
professionalEddy Vluggen30-Dec-09 4:03 
Questionhow to make web application using multipoint sdk Pin
krunal2529-Dec-09 23:45
krunal2529-Dec-09 23:45 
AnswerRe: how to make web application using multipoint sdk Pin
Jimmanuel30-Dec-09 3:02
Jimmanuel30-Dec-09 3:02 
QuestionTreeview doesn't update after treenode.remove Pin
eyalle29-Dec-09 23:14
eyalle29-Dec-09 23:14 
AnswerRe: Treeview doesn't update after treenode.remove Pin
Luc Pattyn30-Dec-09 0:44
sitebuilderLuc Pattyn30-Dec-09 0:44 
GeneralRe: Treeview doesn't update after treenode.remove Pin
eyalle30-Dec-09 0:48
eyalle30-Dec-09 0:48 
GeneralRe: Treeview doesn't update after treenode.remove Pin
Luc Pattyn30-Dec-09 1:25
sitebuilderLuc Pattyn30-Dec-09 1:25 
AnswerRe: Treeview doesn't update after treenode.remove Pin
Ben Fair30-Dec-09 3:25
Ben Fair30-Dec-09 3:25 
GeneralRe: Treeview doesn't update after treenode.remove Pin
eyalle30-Dec-09 3:28
eyalle30-Dec-09 3:28 
GeneralRe: Treeview doesn't update after treenode.remove Pin
Ben Fair30-Dec-09 3:32
Ben Fair30-Dec-09 3:32 
GeneralRe: Treeview doesn't update after treenode.remove Pin
eyalle30-Dec-09 3:38
eyalle30-Dec-09 3:38 
Questionretrive user rights from sql table Pin
Jassim Rahma29-Dec-09 22:53
Jassim Rahma29-Dec-09 22:53 
AnswerRe: retrive user rights from sql table Pin
Ben Fair30-Dec-09 3:04
Ben Fair30-Dec-09 3:04 
Yes, in some form or fashion you need to have properties that tell you whether a particular user has a particular right. In this case you are relating a set of rights directly to a user. It is common, and may be beneficial, to use 'roles' where you construct a set of roles and each role has a set of rights associated with it, then a user is assigned a role rather than a set of individual priviledges. For example, a role named 'Admin' which has all the rights and one named 'ReadOnly' that only has the BROWSE rights. Choose whichever method works best for your needs.

As far as retrieving the rights, the best OOP way would be to have a User class and some kind of security class that would contain information about the user's rights. The User class would be a composite in that it would contain a copy of the security class. It would seem pretty straight-forward to have the User class create and fill the security object when the User class is filled with the User data (perhaps invoking a query or stored procedure to retrieve the rights data where UserID=X).

There are a myriad of ways of accomplishing this, I just gave one example to illustrate one way it could be done.

Hold on a second here... Don't you think you might be putting the horse ahead of the cart?

GeneralRe: retrive user rights from sql table Pin
Jassim Rahma30-Dec-09 10:54
Jassim Rahma30-Dec-09 10:54 
GeneralRe: retrive user rights from sql table Pin
Jassim Rahma13-Jan-10 7:43
Jassim Rahma13-Jan-10 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.