c# - Alter generated URLs in MVC globally -
i have simple question.
i want able change every url gets create helper class in mvc.net, problem don't know have override so.
edit: goal change behaviour of mvc when create urls..i want make urls mvc creates seo friendly.
after hours of google & bing not smarter...
if knows have change something, please give me hint, thank :)
get grips routing:
routes found in global.asax file , htmlhelpers actionlink
should automatically adapt custom routes. if specify custom route above default route , following, url produced match route:
@html.actionlink("go!", "anaction", "acontroller")
if specify other parameters in route not available parameters standard overloads of actionlink
, can pass these in routevalues
parameter:
@html.actionlink("go!", "anaction", "acontroller", new { mycustomparameter = "hello" })
Comments
Post a Comment