Generate MVC HTml.ActionLink programatically
Posted
by swetha
on Stack Overflow
See other posts from Stack Overflow
or by swetha
Published on 2010-05-11T23:39:22Z
Indexed on
2010/05/11
23:44 UTC
Read the original article
Hit count: 323
seo-friendly
I have a scenario where I should redirect my Legacy Url to my current SEO Url. and I have 300+ different legacy urls so I am handling all those in my 404 Handler.
I have my Legacy Url and the actual Action, controller and parameters it is supposed to use. But the issue is there is already a SEO friendly route for these Action and Controller. so I want to redirect this legacy URL to that friendly route.
So I am planning to generate a link like what Html.ActionLink does and want to move permanently.
Can anyone help me in generating this link???
© Stack Overflow or respective owner