Click here to Skip to main content
15,915,501 members
Home / Discussions / C#
   

C#

 
GeneralRe: AzMan Roles and Operations [modified] Pin
bonkers1234-May-09 22:29
bonkers1234-May-09 22:29 
GeneralRe: AzMan Roles and Operations Pin
robalexclark5-Jun-09 3:32
robalexclark5-Jun-09 3:32 
GeneralRe: AzMan Roles and Operations Pin
nollusions31-Mar-10 10:33
nollusions31-Mar-10 10:33 
QuestionCan not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Dattatraya K4-May-09 21:50
Dattatraya K4-May-09 21:50 
AnswerRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Christian Graus4-May-09 21:57
protectorChristian Graus4-May-09 21:57 
GeneralRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Dattatraya K4-May-09 22:05
Dattatraya K4-May-09 22:05 
GeneralRe: Can not run a bat file that is registering some dll's on Windows vista through custom installer designed in VS 2005. Pin
Christian Graus4-May-09 22:07
protectorChristian Graus4-May-09 22:07 
QuestionUser Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 20:50
King Julien4-May-09 20:50 
Hi all!

I have gotta small dilemma in proceeding with my project. I thought it would be better to ask the gurus to sort it out in their own fashion...

Here it goes...
I am developing a small consoleapplication, which is used to fetch data from a distance server.

The details of "which" data to be fetched is given as a command line option. I have several such commands and everything was working fine. But now, for some reasons i want to restrict the usage of certain commands, i.e., much similar like a basic user and admin user level. Admin user can use all the command options whereas basic user can use only non-restricted commands.

For this, I have created two attributes named "admin" and "basic" and applied to the corresponding commands. The attributes need to compared with the user level configuration.

Now how do i make the application to differentiate the user rights??

option 1: Have a XML config file with a "user level" field and read the XML file in the runtime and allow access...

option 2: have a shared dll file with a "user level" property and read the dll during runtime and allow access accordingly....

Note: The main requirement is that user rights can be upgraded and downgraded from "basic" to "admin" and vice versa just by modifying the configuration entries...

Please suggest, which one to use and if any other better option too....

Have a Happy Coding.....

AnswerRe: User Level restriction------- which method is best xml or dll ?? Pin
Christian Graus4-May-09 21:16
protectorChristian Graus4-May-09 21:16 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 21:21
King Julien4-May-09 21:21 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
SeMartens4-May-09 21:30
SeMartens4-May-09 21:30 
GeneralRe: User Level restriction------- which method is best xml or dll ?? Pin
King Julien4-May-09 21:40
King Julien4-May-09 21:40 
Questionget set property Pin
lakhwinder.ghuman4-May-09 20:49
lakhwinder.ghuman4-May-09 20:49 
AnswerRe: get set property Pin
King Julien4-May-09 21:01
King Julien4-May-09 21:01 
GeneralRe: get set property Pin
OriginalGriff4-May-09 21:59
mveOriginalGriff4-May-09 21:59 
AnswerRe: get set property Pin
Member 44703545-May-09 0:00
Member 44703545-May-09 0:00 
QuestionHow to read CSV file Pin
kaushik_dass4-May-09 20:38
kaushik_dass4-May-09 20:38 
AnswerRe: How to read CSV file Pin
King Julien4-May-09 21:09
King Julien4-May-09 21:09 
GeneralRe: How to read CSV file Pin
kaushik_dass4-May-09 21:15
kaushik_dass4-May-09 21:15 
GeneralRe: How to read CSV file Pin
Dave Kreskowiak5-May-09 4:31
mveDave Kreskowiak5-May-09 4:31 
AnswerRe: How to read CSV file [modified] Pin
Jack Li4-May-09 21:46
Jack Li4-May-09 21:46 
QuestionConfirm message on successful validation Pin
Ramkithepower4-May-09 20:27
Ramkithepower4-May-09 20:27 
AnswerRe: Confirm message on successful validation Pin
Christian Graus4-May-09 20:35
protectorChristian Graus4-May-09 20:35 
AnswerRe: Confirm message on successful validation [modified] Pin
mohmeh834-May-09 20:42
mohmeh834-May-09 20:42 
GeneralRe: Confirm message on successful validation Pin
Ramkithepower4-May-09 20:50
Ramkithepower4-May-09 20:50 

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.