On Tue, Aug 17, 2010 at 1:22 AM, Jeena Ajiesh <[email protected]> wrote:
> Dear all,
> How can we do the modification and deletion only for the admin ?
> User name will be same for both admin and sub users. But sub users are not
> allowed to modify or delete a record in Grid.
> So when clicking modify or delete button, a pop up should come and ask for
> password.If password is correct code behind modify or delete should work.
> I'm using a master page.If possible give some sample coding.
> Can i do his without using javascript?
-------------------

How do you identify who an Admin is as they log in?

>From that point define an oApp class and set isAdmin = true;  Now read
that flag as needed and don't waste time with passwords all over the
system.  Use that flag to set if an edit button is even displayed to
people whom we will not allow edit rights.

YMMV



-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Reply via email to