Author: dt86uk | Posted on: 4/28/2010 7:30:55 PM | Views : 675

Hi everyone,
I'm looking to write some script that checks that: The current user of whom is logged in has the correct authority credentials.
NB: Script in C# before I continue.

To give a bit more background. The SQL DB Table for AdminUsers has a field 'Authority' this is linked to another table (Authority) which has the values/different levels of authority in them. Thus, if aN admin user whose Authority level is just listed as 'user', for example, in the database and wants to edit information that requires 'Supeuser' authority level - it cannot be performed and is redirected to another page.
In detail, my particular page, the operation is being done via a ASP Button within a ASP Repeater. Of each record that occurs there is the button that, once pressed, updates the field in the database (in this case for a Guestbook table which has a 'Moderated' field of 'bit/bool' data type, changing it from false to ...

Go to the complete details ...