tags:

views:

17

answers:

2

Url.Action found in MVC is member of what classes? VS2008 cannot find it and keeps offering me just System.Security.Policy to import. Alternatively, can I make ActionLink helper NOT to encode it's content, so this code would work:

sb.Append(helper.ActionLink(linkText, actionName, controllerName, new{onclick=""}));
+1  A: 

Please see System.Web.Mvc.UrlHelper (found in System.Web.Mvc.dll):

Contains methods for building URLs for ASP.NET MVC within your application.

Andrew Hare
A: 

System.Web.Mvc.UrlHelper

Craig Stuntz