Last post Sep 07, 2014 07:59 AM by Rion Williams
Sep 07, 2014 02:12 AM|arjdlove|LINK
tell me how to apply security in my application as folder wise.
Sep 07, 2014 07:59 AM|Rion Williams|LINK
Could you be a bit more specific?
In general, an ASP.NET application is going to be compiled, so your users aren't really going to have access to your Solution's folder structure directly (unless you explicitly allow them access). ASP.NET allows you to configure file access / authorization,
within the web.config using <allow> and <deny> attributes similar to the example below :
Additionally, you could simply place web.config files within these folders as well (instead of applying this in a single web.config) and control it on a folder-by-folder basis. You can read a bit more on implementing this type of authorization below