A
Alfonso Moreno
Hello,
- I have defined in web.config the http handler like this:
<handlers>
<add verb="*" path="ImageThumbnailer.ashx"
type="Thumbnailer.Handler.Thumbnailer, Thumbnailer.Handler"/>
....
- My http handler looks like:
namespace Thumbnailer.Handler
{
public class Thumbnailer : BaseHttpHandler
.....
- I create dynamically with javascript, an image like this and the .src
property is defined also:
var img = document.createElement("img");
img.src = "ashx/ImageThumbnailer.ashx?img=../Images/Image01.jpg&size=72";
or
img.src = "ImageThumbnailer.ashx?img=../Images/Image01.jpg&size=72";
but the property is stored on the database like :
http://localhost:49573/SubdirCurren...nailer.ashx?img=../Images/Image01.jpg&size=72
That is to say, the full path is prepended to the path of the current page.
Does anyone have any clue as what it is happening ?
Regards
Alfonso Moreno
- I have defined in web.config the http handler like this:
<handlers>
<add verb="*" path="ImageThumbnailer.ashx"
type="Thumbnailer.Handler.Thumbnailer, Thumbnailer.Handler"/>
....
- My http handler looks like:
namespace Thumbnailer.Handler
{
public class Thumbnailer : BaseHttpHandler
.....
- I create dynamically with javascript, an image like this and the .src
property is defined also:
var img = document.createElement("img");
img.src = "ashx/ImageThumbnailer.ashx?img=../Images/Image01.jpg&size=72";
or
img.src = "ImageThumbnailer.ashx?img=../Images/Image01.jpg&size=72";
but the property is stored on the database like :
http://localhost:49573/SubdirCurren...nailer.ashx?img=../Images/Image01.jpg&size=72
That is to say, the full path is prepended to the path of the current page.
Does anyone have any clue as what it is happening ?
Regards
Alfonso Moreno