Datagrid: Conditional Access

M

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
 
S

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
 
M

mike.aes

ok, that's what I was doing. Just wanted to make sure that's the
common practice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top