This project is read-only.

Red "X" instead of images.

Apr 8, 2009 at 5:06 PM
I have embedded the handler in a web form (aspx) page.  But all I get is red "x" instead of images.  However if  browse to the handler fle (ashx) they load fine.

I have played with the cache location (disk, memory, none) and I am trying to set my app for full trust, but can't get the web form to work.

What write permissions do I need to set or how do I set my app for full trust to get this to work?

Apr 21, 2009 at 11:05 PM

Using the Default.apsx that came with the source as an example, you need to modify the HanlderUrl property of the user control to contain the path to your handler (album.ashx).  You can place Default.aspx (or similar) anywhere in your site as long as album.ashx (or your modified version) exists where the photos are.  Just drop in the user control as per the example below to any page and it should work just fine.



photo:album runat="server" ID="CottageAlbum" HandlerUrl="~/Photos/album.ashx" EnableViewState="true" />