buttons with templates and formview???
I wish to have the ability to hide certain buttons such as EDIT, DELETE, or ADD based upon the end users permissions.
I have a table that is read that will determine the end users rights when they enter the form ... but then I need to hide the buttons
that they don't have the right to use.
I see that there may be two ways to do this.
(1) write code to disable the buttons that are default in the templates
. each time I reenter a template all the buttons reappear if I have disabled them first
(2) delete the default buttons in the templates and insert buttons outside the formview
. I can disable the buttons easily here but I can't get the buttons to do the commands which will affect the templates.
any thoughts or suggestions?????
Disable the edit, add, and delete button.
Your #1 solution to disable the edit, add, and delete buttons on a formview don't work if the formview has paging enabled. The buttons will appeal when you click on one of paging buttons. Do you have any idea to fix this problem