Click here to Skip to main content
       

.NET Framework

 
GeneralRe: [VB.NET 2008] How to put an image in a button Pinmemberhalabella13-Jan-13 5:17 
GeneralRe: [VB.NET 2008] How to put an image in a button Pinmembersteve_949661313-Jan-13 23:46 
AnswerRe: [VB.NET 2008] How to put an image in a button Pinmembers32750499-Jan-13 8:41 
GeneralRe: [VB.NET 2008] How to put an image in a button Pinmembersteve_94966139-Jan-13 21:57 
Question[VB.NET 2008] How to get single bytes from a multibyte value Pinmembersteve_94966138-Jan-13 23:12 
AnswerRe: [VB.NET 2008] How to get single bytes from a multibyte value PinmvpEddy Vluggen9-Jan-13 2:29 
GeneralRe: [VB.NET 2008] How to get single bytes from a multibyte value Pinmembersteve_94966139-Jan-13 4:15 
GeneralRe: [VB.NET 2008] How to get single bytes from a multibyte value PinmvpEddy Vluggen9-Jan-13 5:31 
AnswerRe: [VB.NET 2008] How to get single bytes from a multibyte value PinmemberAlan N9-Jan-13 7:17 
GeneralRe: [VB.NET 2008] How to get single bytes from a multibyte value Pinmembersteve_94966139-Jan-13 21:35 
QuestionDistributing Changes to a DLL that Other Assemblies Depend Upon PinmemberRichard Andrew x648-Jan-13 3:24 
AnswerRe: Distributing Changes to a DLL that Other Assemblies Depend Upon PinprotectorPete O'Hanlon8-Jan-13 3:31 
QuestionMethod Level security based on User logged in Pinmemberpankajbaunthiyal7-Jan-13 23:31 
AnswerRe: Method Level security based on User logged in PinprotectorPete O'Hanlon8-Jan-13 0:44 
You could use the RoleProvider to determine whether or not the user has the appropriate permission to execute a particular method.
 
I will say, however, that you should be approaching this from the perspective of what the user sees rather than locking off individual methods. In other words, it's better to prevent the user from being able to see a menu option/click it, than it is to let them click it and then tell them that they didn't have the appropriate permission to execute the method.
 
As you haven't stated what technology you are using, this is as close as I'm going to be able to give you a full answer without overloading you with details for technologies you aren't interested in.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionIOException was Unhandled Pinmemberjankevint7-Jan-13 16:39 
AnswerRe: IOException was Unhandled PinmvpRichard MacCutchan7-Jan-13 23:24 
QuestionUser password encryption in .Net Framework 4.5 Pinmembersamijf6-Jan-13 22:11 
AnswerRe: User password encryption in .Net Framework 4.5 PinmvpEddy Vluggen6-Jan-13 22:15 
QuestionBuild Output Question PinmemberKevin Marois4-Jan-13 6:32 
AnswerRe: Build Output Question PinmvpRichard MacCutchan4-Jan-13 7:13 
GeneralRe: Build Output Question PinmemberKevin Marois4-Jan-13 7:20 
GeneralRe: Build Output Question PinmvpRichard MacCutchan4-Jan-13 7:58 
AnswerRe: Build Output Question PinmvpAbhinav S4-Jan-13 7:20 
AnswerRe: Build Output Question PinmvpSandeep Mewara4-Jan-13 7:28 
QuestionNullable(Of Decimal) type variable is throwing exception "Nullable object must have a value." Pinmemberindian14327-Dec-12 19:14 
AnswerRe: Nullable(Of Decimal) type variable is throwing exception "Nullable object must have a value." PinmemberEddy Vluggen28-Dec-12 9:41 
QuestionC# statement var indirect val [modified] Pinmembercodejuggler927-Dec-12 7:33 
AnswerRe: C# statement var indirect val PinmvpDave Kreskowiak27-Dec-12 8:23 
GeneralRe: C# statement var indirect val Pinmembercodejuggler927-Dec-12 8:58 
GeneralRe: C# statement var indirect val PinmvpDave Kreskowiak27-Dec-12 9:47 
QuestionNeeded: PGP source code PinmemberGregory.Gadow26-Dec-12 6:30 
AnswerRe: Needed: PGP source code PinmemberGregory.Gadow26-Dec-12 6:35 
QuestionPrivate byte is being increased continuously without any request Pinmembernishantenet23-Dec-12 21:14 
AnswerRe: Private byte is being increased continuously without any request PinmvpDave Kreskowiak24-Dec-12 6:10 
AnswerRe: Private byte is being increased continuously without any request Pinmemberjschell24-Dec-12 8:57 
QuestionMSI not taking/Installing .NET framework Pinmembersjs4u19-Dec-12 18:25 
AnswerRe: MSI not taking/Installing .NET framework PinmvpDave Kreskowiak19-Dec-12 19:55 
QuestionEntity Framework is Updating other column also Pinmemberindian14319-Dec-12 16:51 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 [modified] Pinmembersr15919-Dec-12 0:26 
SuggestionRe: Unable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 PinmvpRichard MacCutchan19-Dec-12 0:52 
QuestionCustomer Hacking System Time PinmemberKlockness18-Dec-12 5:33 
AnswerRe: Customer Hacking System Time PinmvpRichard MacCutchan18-Dec-12 7:46 
GeneralRe: Customer Hacking System Time PinmemberKlockness18-Dec-12 11:25 
AnswerRe: Customer Hacking System Time PinmemberRichard Deeming18-Dec-12 8:32 
GeneralRe: Customer Hacking System Time PinmemberKlockness18-Dec-12 11:26 
QuestionCan only book for yourself and not other users? PinmemberxnaLearner17-Dec-12 2:26 
AnswerRe: Can only book for yourself and not other users? PinmvpRichard MacCutchan17-Dec-12 4:27 
Questionusing [Authorize] mvc3 PinmemberxnaLearner17-Dec-12 2:02 
QuestionRe: using [Authorize] mvc3 PinmemberEddy Vluggen17-Dec-12 2:08 
AnswerRe: using [Authorize] mvc3 PinmemberxnaLearner17-Dec-12 2:25 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 25 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid