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:

http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/asp-net-mvc-routing-overview-cs

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -