Having obtained the logged on user name and the usergroup(s) that they are included in (considering they may be included in more than one) how can we then allow / prevent said user to make use of the code / method behind a button.
Someone's mentioned making use of code directly above the method (i.e. button1_Click(..)) that checks the status / usergroup and then runs the code or not accordingly.
How do I go about making use of this concept.
Say I have five buttons, each accessible dependent on the user's inclusion in various combinations of user groups - how can I set up this as a simple example application ?
Any help would be greatly appreciated.
Thanks in advance
Steve
Someone's mentioned making use of code directly above the method (i.e. button1_Click(..)) that checks the status / usergroup and then runs the code or not accordingly.
How do I go about making use of this concept.
Say I have five buttons, each accessible dependent on the user's inclusion in various combinations of user groups - how can I set up this as a simple example application ?
Any help would be greatly appreciated.
Thanks in advance
Steve