Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon 692 posts 1068 karma points
    Jan 14, 2016 @ 09:33
    Simon
    0

    Routing

    Hi Guys,

    I am trying to create a routing on my search results page.

    I got the controller name and the action, which are not custom, just the defaults.

    RouteTable.Routes.MapRoute(
                    ConstantNames.Routing_PropertyTypesAndLocalitiesRouteName,
                    "luxury-properties/test",
                    new
                    {
                        controller = ConstantNames.Routing_PropertyTypesAndLocalities_Controller,
                        action = ConstantNames.Routing_PropertyTypesAndLocalities_Action
                    });
    

    The problem is that when I go to that url, the page just render nothing, just blank page, even not found.

    Any help regarding routing on non-custom controllers?

    Thank you.

    Kind Regards

  • Simon 692 posts 1068 karma points
    Jan 14, 2016 @ 09:42
    Simon
    0

    The controller name is RenderMvc and the action name is SearchResults

  • Simon 692 posts 1068 karma points
    Jan 14, 2016 @ 11:59
    Simon
    0

    I HAve this:

    RouteTable.Routes.MapRoute(
                   "sdfsdf",
                   "luxury-properties/test",
                   new
                   {
                       controller = "RenderMvc",
                       action = "SearchResults",
    
                   },new UmbracoVirtualNodeByIdRouteHandler(1092));
    

    But the view is not being rendered. Just Blank Page.

    Any ideas pleasE?

  • Simon 692 posts 1068 karma points
    Jan 14, 2016 @ 12:24
    Simon
    0

    I have debugged and Route Data Tokens are not being filled in.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies