Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
AnswerRe: File Upolad Pin
Dave Kreskowiak11-Dec-08 21:37
mveDave Kreskowiak11-Dec-08 21:37 
GeneralRe: File Upolad Pin
B8711-Dec-08 23:48
B8711-Dec-08 23:48 
GeneralRe: File Upolad Pin
Dave Kreskowiak12-Dec-08 13:37
mveDave Kreskowiak12-Dec-08 13:37 
QuestionPlz solve the prob its very urgent Pin
GauravGupta21211-Dec-08 18:57
GauravGupta21211-Dec-08 18:57 
GeneralRe: Plz solve the prob its very urgent Pin
TJS4u11-Dec-08 19:26
TJS4u11-Dec-08 19:26 
GeneralRe: Plz solve the prob its very urgent Pin
GauravGupta21211-Dec-08 19:39
GauravGupta21211-Dec-08 19:39 
GeneralRe: Plz solve the prob its very urgent Pin
TJS4u11-Dec-08 19:43
TJS4u11-Dec-08 19:43 
AnswerRe: Plz solve the prob its very urgent Pin
sunitkrishna11-Dec-08 20:27
sunitkrishna11-Dec-08 20:27 
AnswerRe: Plz solve the prob its very urgent Pin
J4amieC11-Dec-08 22:38
J4amieC11-Dec-08 22:38 
AnswerRe: Plz solve the prob its very urgent Pin
Ankit Aneja12-Dec-08 6:30
Ankit Aneja12-Dec-08 6:30 
Questionif (T1.Text = "admin" && T2.Text = "admin") Pin
MS Lee11-Dec-08 18:36
MS Lee11-Dec-08 18:36 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
Brij11-Dec-08 18:43
mentorBrij11-Dec-08 18:43 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
Thomas Weller11-Dec-08 18:46
Thomas Weller11-Dec-08 18:46 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
MS Lee11-Dec-08 18:49
MS Lee11-Dec-08 18:49 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
Christian Graus11-Dec-08 20:28
protectorChristian Graus11-Dec-08 20:28 
QuestionToggling and enabling of menustrip items and sub items. Pin
sunitkrishna11-Dec-08 18:30
sunitkrishna11-Dec-08 18:30 
AnswerRe: Toggling and enabling of menustrip items and sub items. Pin
Lev Danielyan11-Dec-08 19:19
Lev Danielyan11-Dec-08 19:19 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
sunitkrishna11-Dec-08 19:46
sunitkrishna11-Dec-08 19:46 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
Lev Danielyan11-Dec-08 20:00
Lev Danielyan11-Dec-08 20:00 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
sunitkrishna11-Dec-08 20:13
sunitkrishna11-Dec-08 20:13 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
Lev Danielyan11-Dec-08 20:33
Lev Danielyan11-Dec-08 20:33 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
sunitkrishna11-Dec-08 20:55
sunitkrishna11-Dec-08 20:55 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
Lev Danielyan11-Dec-08 21:20
Lev Danielyan11-Dec-08 21:20 
Well, I see,

You are storing all the menu IDs applicable to the user permissions in a DB and then enable/disable the menu items with this IDs, am I right?

I don't think this is efficient, you are storing a lot of redundant data, try to do it the way I suggested. Do not keep menu IDs in the DB, instead keep the user privilege level, associate it with each menu item. This way you will get just the user permissions level from db (an integer for example) and compare it with the level associated with the menu item. See my previous post.

Regards,
Lev

GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
sunitkrishna11-Dec-08 21:26
sunitkrishna11-Dec-08 21:26 
GeneralRe: Toggling and enabling of menustrip items and sub items. Pin
Lev Danielyan11-Dec-08 21:36
Lev Danielyan11-Dec-08 21:36 

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.