November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
I have seen this but all I need is to pass through a UrlParameter. I dont want to fetch any data based on the url, just pass it through to the controller.
Wrap your code in if(!ContentReference.IsNullOrEmpty(ContentReference.StartPage)).
Don't ask ;-)
Thanks Joel, that seems to work. I wasnt overriding the register routes method either, so thats in place now.
So the route registered and i can see it in my route table, but its 404 ing now.
im trying to access Http://localhost/uk/path/to/page/detail/p123
where /uk/ is a virtual directory
/path/to/page/ is the episerver url path
/detail/ is the action
and /p123 is my required parameter
any ideas?
just tried out the same code on another demo episerver site and it worked! not sure what else could be interfering.???
I am trying to extend the episerver routing to add a /productid/ segment on the end of an episerver URL
I have added the following to my global asax
But it throws the following error when the application loads:
StructureMap Exception Code: 202
No Default Instance defined for PluginFamily System.Web.Routing.IRouteHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
How do i fix this? and is the above route registration the correct approach?
Thanks