Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
180 Points
264 Posts
Apr 02, 2009 04:49 AM|LINK
I have a .aspx page in /DynamicData/CustomPages called ArticleViewer.aspx
Global.asax looks like this:
routes.Add(new DynamicDataRoute("Articles / {slug}") { Action="ArticleViewer" }); routes.Add(new DynamicDataRoute("{table}/{action}.aspx") { Constraints = new RouteValueDictionary(new { action = "List|Details|Edit|Insert" }), Model = model });
I want my url to look like this: http://mysite/articles/somearticle
I only get 404 - what am I doing wrong?
Thanks
samw
Member
180 Points
264 Posts
Routing question
Apr 02, 2009 04:49 AM|LINK
I have a .aspx page in /DynamicData/CustomPages called ArticleViewer.aspx
Global.asax looks like this:
routes.Add(new DynamicDataRoute("Articles / {slug}") { Action="ArticleViewer" }); routes.Add(new DynamicDataRoute("{table}/{action}.aspx") { Constraints = new RouteValueDictionary(new { action = "List|Details|Edit|Insert" }), Model = model });I want my url to look like this: http://mysite/articles/somearticle
I only get 404 - what am I doing wrong?
Thanks