Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

routes.MapPageRoute("route1","support","~/Support.aspx") does not work

Status
Not open for further replies.

fletchsod

Programmer
Dec 16, 2002
181
0
0
I noticed trying to route the url to a physical webpage does not work.

Code:
routes.MapPageRoute("route1","support","~/Support.aspx")

but works when others is used...

Code:
routes.MapPageRoute("route1","contact","~/ContactUs.aspx")
routes.MapPageRoute("route1","about","~/AboutUs.aspx")
routes.MapPageRoute("route1","features","~/Features.aspx")

What can I do to make it work for the Support webpage?
 
ASP.NET does not like the use of routeUrl "support".
 
Appearantly, there's a folder name "support" that stored the exe files. So, it conflict w/ the routeUrl.

The workaround to the problem is to add this to the script...

routes.RouteExistingFiles = true;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top