how to enable and disable button based on user role?

前端 未结 6 1895
予麋鹿
予麋鹿 2021-01-13 20:22

I have a role called \'member\' and another \'admin\' in Asp.Net website.

I did before, that button should be visible or not and i am successful in that,but,i am not

6条回答
  •  滥情空心
    2021-01-13 21:01

    I'm assuming you are using an ASP.NET button control - if you are then you need to set the Visible and Enabled button properties to false

提交回复
热议问题