C# - 在基于角色的GridView中显示编辑imageButton? [英] C# - Displaying Edit imageButton In GridView Based On Role?
本文介绍了C# - 在基于角色的GridView中显示编辑imageButton?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在网格视图中禁用编辑按钮(使用图像按钮),只要有人以管理员身份登录....我应该使用gridview的哪个事件......我应该使用rowdatabound ....
plz建议。
i want to disable edit button (imagebutton is used) in gridview whenenver anyone logged in as a adminstrator....which event of gridview should i use ...should i use rowdatabound....
plz suggest.
推荐答案
是使用RowDataBound。如果用户能够编辑,请检查标准...如果是,则显示按钮否则让它显得虚假...
问候,
Dinesh Kumar.V。
Yes use RowDataBound..Check the criteria if the user is able to edit or not...if yes then display the button else make it visible false...
Regards,
Dinesh Kumar.V.
这篇关于C# - 在基于角色的GridView中显示编辑imageButton?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文