I am creating a web application and i am using membership and roles. In my application i have 4 Roles.
i have one page of registerpatient.aspx common in both receptionist and Scheduler. Means both can create a patient. then in which folder i should put this page so that both can access. i dont want any other user to access this page. I am using Roles management by membership and roles. so we can assign roles to Directory so how to assign to particular pages ?
You can do this by adding location configuration. Location is a web.config section that apply for only one directory or file and contains its own system.web section. See a post about that here: http://weblogs.asp.net/gurusarkar/archive/2008/09/29/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.