Help with ASP.NET 4.0 routing and subfolders
Posted
by pixel3cs
on Stack Overflow
See other posts from Stack Overflow
or by pixel3cs
Published on 2010-05-24T13:37:56Z
Indexed on
2010/05/24
13:41 UTC
Read the original article
Hit count: 384
If I use routing with 2 query parameters, like this:
System.Web.Routing.RouteTable.Routes.MapPageRoute("HomeRoute", "home/{f1}/{f2}", "~/Home.aspx");
My image does not appear on my Home.aspx page:
<img src="~/img/img.jpg" /> or <img src="img/img.jpg" />
But it does appear when I access the http://localhost:3760/Website/Home.aspx
URL
I tried using Routing.Ignore with no luck. I look for a solution wich should work for an unlimited number of subfolders: "home/{f1}/{f2}/.../{fn}"
© Stack Overflow or respective owner