I have a website that Contains pdf files stored in folder on server and i need to set access to this files in folder only for users that logged in and belong to role i choose! thanks for helping :) :) Explain the situation: name of folder is "files" name of a file in folder is "f.pdf" when i type this url "www.website.com/files/f.pdf" it's open pdf file that suppose open only for authenticated users?? how can i solve this problem ??
<location path="files"> <system.web> <authorization> <deny users="?" /> <allow roles="RoleToAllow" /> </authorization> </system.web> </location>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)