I'm using ASP.NET 4 Web forms routing like this :
RegisterRoutes(System.Web.Routing.RouteCollection route)
{
route.MapPageRoute("Entries", "Details/{EntryId}", "~/Details.aspx");
}
void
but when the page Details.aspx/5 display all
http://localhost:1561/Education/Details/images/LeftColmn_01.gif
but the original path is
http://localhost:1561/Education/images/LeftColmn_01.gif
i'm tring to add this to my global but not working
void RegisterRoutes(System.Web.Routing.RouteCollection route)
{
System.Web.Routing.RouteTable.Routes.RouteExistingFiles = false;
route.Add(new System.Web.Routing.Route(@"*\.png", new System.Web.Routing.StopRoutingHandler()));
route.Ignore("{*allpng}", new { allpng = @".*\.png(/.*)?" });
}
nothing get work ...
any help please.

Suthish NairRank #92 · 22.8K reputationPosted Jun 21, 2011, 3:07 AM EDT
route.MapPageRoute("Entries", "Details/{EntryId}", "~/Details.aspx");
with
route.MapPageRoute("Entries", "/{EntryId}", "~/Details.aspx");
zezo fareed6 reputationPosted Jun 21, 2011, 3:12 AM EDT