Best Practices for controlling access to form fields

后端 未结 5 1406
闹比i
闹比i 2021-01-06 01:31

I have a classic 3-tier ASP.Net 3.5 web application with forms that display business objects and allow them to be edited. Controls on the form correspond to a property of th

5条回答
  •  [愿得一人]
    2021-01-06 01:56

    For the website menus we can have different menus based on users role by using the Sitemaps. For controls like Buttons we will have to hide them using their Visible property. I think a good idea will be to create a server control (Button) and expose the Role property. This will hide the Button if the user is not in the correct role.

提交回复
热议问题