Hi
I have an application that uses ASP.NET forms authentication,
I store uploaded images in specific folders on the server which are restricted access with the following code in the web.config.
<location path = "myimages">
<system.web>
<Authorization>
<deny users ="?"/>
<Authorization>
</system.web>
</location>
This works well in the application as the images are only viewable if the user has logged in and is authenticated.
However if I have a Picturebox on a report and try and bind it to one of the images in the restricted folder it fails,
The reports are stored in their own Project within the same solution as the main website.
Is there a way I can authenticate the reports so that I can access the images.
I hope I have explained the issue, but please ask if you need clarification
Thank You
I have an application that uses ASP.NET forms authentication,
I store uploaded images in specific folders on the server which are restricted access with the following code in the web.config.
<location path = "myimages">
<system.web>
<Authorization>
<deny users ="?"/>
<Authorization>
</system.web>
</location>
This works well in the application as the images are only viewable if the user has logged in and is authenticated.
However if I have a Picturebox on a report and try and bind it to one of the images in the restricted folder it fails,
The reports are stored in their own Project within the same solution as the main website.
Is there a way I can authenticate the reports so that I can access the images.
I hope I have explained the issue, but please ask if you need clarification
Thank You