I want to use the Html Helper class to build, for example, an Html.ActionLink from within a controller action. I don't see it available from within controller actions. What am I missing?
+1
A:
I don't think you should be using the html helper methods in your controller. This stuff is best left in the view
jdelator
2009-08-14 21:46:26
A:
Consider using UrlHelper @ Controller.Url. You can use it to generate a url, then pass it to your view. The view is the right place to create a link to the url.
Frank Schwieterman
2009-08-14 21:53:07