Home All Groups Group Topic Archive Search About

Datagrid: Conditional Access

Author
6 Jan 2006 1:15 AM
mike.aes
(Using VS.Net 2005)
What are the best practices for conditionally turning on/off
INSERT/EDIT/DELETE features in the Datagrid and Detailsview controls?
In other words, depending on a user's security level, certain
insert/edit/delete buttons should be made invisible.  I don't see a way
to do with within the HTML of the Datagrid control.

Thanks in advance

-Mike

Author
6 Jan 2006 4:30 PM
S. Justin Gengo
Mike,

You have to do that in the code-behind. You'll need to check the user's role
there and then set the grid/view appropriately.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
                            Nietzsche
<mike.***@gmail.com> wrote in message
Show quoteHide quote
news:1136510148.651436.53260@g44g2000cwa.googlegroups.com...
> (Using VS.Net 2005)
> What are the best practices for conditionally turning on/off
> INSERT/EDIT/DELETE features in the Datagrid and Detailsview controls?
> In other words, depending on a user's security level, certain
> insert/edit/delete buttons should be made invisible.  I don't see a way
> to do with within the HTML of the Datagrid control.
>
> Thanks in advance
>
> -Mike
>
Are all your drivers up to date? click for free checkup

Author
8 Jan 2006 5:01 PM
mike.aes
ok, that's what I was doing.  Just wanted to make sure that's the
common practice.

Bookmark and Share