Hi, I have a route in my website for ExportTo :
Shared Sub RegisterRoutes(routes As System.Web.Routing.RouteCollection)
Dim urlPattern As String
Dim categoryRoute As System.Web.Routing.Route
urlPattern = "ExportTo.aspx/{fileName}"
categoryRoute = New System.Web.Routing.Route(urlPattern, New ExportRouteHandler("~/ExportTo.aspx"))
routes.Add("ExportToRoute", categoryRoute)End Sub
In my ExportTo.aspx, I have this :
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/logo.JPG" />
This renders like this on my Dev machine (WebDev.WebServer)
<img id="Image1" src="../images/logo.JPG" style="border-width:0px;" /></a>
And like this on IIS 6
<img id="Image1" src="images/logo.JPG" style="border-width:0px;" /></a>
So when I go to a page like http://intranet/exportTo.aspx/filename.pdf, the image is rendered correctly on WebDev, but not on IIS.
Any clues?