Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to setup webforms routing in umbraco.
I have a content page off the route called "ride". I'd like to change it from www.mysite.com/ride?id=12345 to www.mysite.com/ride/12345
I've added the following to a class in the app code folder.
public class Global : umbraco.Global { /// <summary> /// Code that runs on application startup /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void Application_Start(object sender, EventArgs e) { base.Application_Start(sender, e); RouteTable.Routes.Add("RideRoute", new Route("ride/{RideGuid}", new PageRouteHandler("~/ride"))); }
But that gives me a 404.
I've also tried adding ~/ride/ to umbracoReservedUrls umbracoReservedPaths in the web.config
Does anyone know how to get this to work?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
URL Routing in Umbraco
I'm trying to setup webforms routing in umbraco.
I have a content page off the route called "ride". I'd like to change it from www.mysite.com/ride?id=12345 to www.mysite.com/ride/12345
I've added the following to a class in the app code folder.
But that gives me a 404.
I've also tried adding ~/ride/ to umbracoReservedUrls umbracoReservedPaths in the web.config
Does anyone know how to get this to work?
is working on a reply...