Best Practices for controlling access to form fields

后端 未结 5 1410
闹比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 02:14

    I have often found that this is really the only real easy and understandable way to do it, as your interface needs to modify based on the information and level of editing that they can complete.

    I do find typically though that depending on the needs, you can interject the "cannot edit" information by passing role information to the business level if you have plans to move to different presentation levels. but this adds complexity, and if you are only building for one interface it would most likely be overkill

提交回复
热议问题