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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -