Click here to Skip to main content
15,921,884 members
Home / Discussions / C#
   

C#

 
Generaladd "user" to "COM+ security role" programmatically Pin
Norman Fung17-Oct-03 6:14
Norman Fung17-Oct-03 6:14 
GeneralURGENT, Help me please !!!!!!!! Pin
god4k17-Oct-03 6:02
god4k17-Oct-03 6:02 
Generallistview Pin
jphuphilly17-Oct-03 6:00
jphuphilly17-Oct-03 6:00 
GeneralRe: listview Pin
Corinna John20-Oct-03 1:52
Corinna John20-Oct-03 1:52 
Questionwhy can't I get through the "lock (this)"? Pin
yyf17-Oct-03 5:18
yyf17-Oct-03 5:18 
Generalthe components's comment Pin
wangier16-Oct-03 22:45
wangier16-Oct-03 22:45 
GeneralRe: the components's comment Pin
Eric Gunnerson (msft)17-Oct-03 8:53
Eric Gunnerson (msft)17-Oct-03 8:53 
GeneralRe: the components's comment Pin
wangier19-Oct-03 15:19
wangier19-Oct-03 15:19 
GeneralRe: the components's comment Pin
wangier19-Oct-03 15:24
wangier19-Oct-03 15:24 
GeneralRe: the components's comment Pin
Eric Gunnerson (msft)19-Oct-03 16:41
Eric Gunnerson (msft)19-Oct-03 16:41 
GeneralRe: the components's comment Pin
wangier19-Oct-03 18:51
wangier19-Oct-03 18:51 
QuestionHow to set the TypeConverter of a Control? Pin
wangier16-Oct-03 22:33
wangier16-Oct-03 22:33 
AnswerRe: How to set the TypeConverter of a Control? Pin
god4k17-Oct-03 6:15
god4k17-Oct-03 6:15 
GeneralRe: How to set the TypeConverter of a Control? Pin
Bo Hunter17-Oct-03 11:14
Bo Hunter17-Oct-03 11:14 
GeneralRe: How to set the TypeConverter of a Control? Pin
wangier19-Oct-03 15:11
wangier19-Oct-03 15:11 
GeneralIts Vimal Need Clarification Pin
Vimal Tomar16-Oct-03 20:19
sussVimal Tomar16-Oct-03 20:19 
GeneralRe: Its Vimal Need Clarification Pin
leppie17-Oct-03 9:39
leppie17-Oct-03 9:39 
Generalneed some opinions. Pin
sharkfish16-Oct-03 17:46
sharkfish16-Oct-03 17:46 
I have a hashtable with the object property names as keys, and true/false bit as values. This hashtable represents a security schema. It sets access rights for every property of every object in my application. (I may change the true/false value to some combo of "rwz"..."read, write, or no access").


I want to apply this schema to my classes....I'm wondering if there is something flawed in the following design:

In the constructor, I will grab the the security schema and set the initial values of the properties to the values in the security hashtable.

When that object is instantiated from within a function, I will (usually) grab data from the database. If that particular property is already set to false (as the security hash directed), then I will not re-set the value from the database.

In the client code (ASP.NET pages), I haven't figured out yet how I will gracefully not show those values with the false setting...since they are false, they are not to be shown. If any of you know how to HIDE a column/field in datagrid/datalist/repeater based on property value, I would be much obliged!

Thank you for your opinions/suggestions.
Generalhelp I'm drowning in something obvious Pin
sharkfish16-Oct-03 16:11
sharkfish16-Oct-03 16:11 
GeneralRe: help I'm drowning in something obvious Pin
Christian Graus16-Oct-03 16:50
protectorChristian Graus16-Oct-03 16:50 
GeneralRe: help I'm drowning in something obvious Pin
sharkfish16-Oct-03 17:37
sharkfish16-Oct-03 17:37 
GeneralRe: help I'm drowning in something obvious Pin
ThunorMagi16-Oct-03 18:18
sussThunorMagi16-Oct-03 18:18 
GeneralRe: help I'm drowning in something obvious Pin
Fang@Illusion21-Oct-03 9:27
Fang@Illusion21-Oct-03 9:27 
GeneralDetect cause of application memory leak Pin
Andy Davey16-Oct-03 13:46
Andy Davey16-Oct-03 13:46 
GeneralRe: Detect cause of application memory leak Pin
James Simpson17-Oct-03 1:40
James Simpson17-Oct-03 1:40 

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.