How to call the Route Name in Html.ActionLink asp.net MVC? -
i have route
routes.maproute( "viewgames", // route name "psp/{controller}/{action}", // url parameters new { controller = "games"} // parameter defaults ); and used <%= html.actionlink("god of war", "godofwar", "games")%> though gives me link somesite.com/psp/games/godofwar/ other link became example homecontroller became somesite.com/psp/home/about/?
how can call routename other won't have viewgames route?
i dont want try <a href="/psp/games/godofwar/"> not good.. .
you explicitly call route using
<%: html.routelink("link_text", "route_name", route_parameters) %> all overloads html.routelink here
Comments
Post a Comment