|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Datagrid: Conditional Access(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 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. -- Show quoteHide quoteSincerely, S. Justin Gengo, MCP Web Developer / Programmer www.aboutfortunate.com "Out of chaos comes order." Nietzsche <mike.***@gmail.com> wrote in message 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 >
Other interesting topics
HttpWeb Request from Class Library fails to 500
when debugging long delay before hitting breakpoint in page load How do I convert a DataSet to a String from a WebService Don't show page in browser history asp.net 2.0 caching ASP.net 2.0 GridView edit mode problems GridView and XML problems Switching from http to https and back call functions by pointer? Issues with OnTextChanged using <asp:Repeater |
|||||||||||||||||||||||