UrlHelper.Action Method
This page is specific to:.NET Framework Version:
 3.54

Generates a fully qualified URL to an action method.

Overload List

  Name Description
ASP.NET MVC : UrlHelper_.net Action(String) Generates a fully qualified URL to an action method by using the specified action name.
ASP.NET MVC : UrlHelper_.net Action(String, Object) Generates a fully qualified URL to an action method by using the specified action name and route values.
ASP.NET MVC : UrlHelper_.net Action(String, String) Generates a fully qualified URL to an action method by using the specified action name and controller name.
ASP.NET MVC : UrlHelper_.net Action(String, RouteValueDictionary) Generates a fully qualified URL to an action method for the specified action name and route values.
ASP.NET MVC : UrlHelper_.net Action(String, String, Object) Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
ASP.NET MVC : UrlHelper_.net Action(String, String, RouteValueDictionary) Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
ASP.NET MVC : UrlHelper_.net Action(String, String, Object, String) Generates a fully qualified URL to an action method by using the specified action name, controller name, route values, and protocol to use.
ASP.NET MVC : UrlHelper_.net Action(String, String, RouteValueDictionary, String, String) Generates the fully qualified URL for an action method by using the specified action name, controller name, route values, protocol to use, and host name.
Top
Remarks

The URL returned by this method will be similar to "\Home\About". If you need the URL encoded, use the Encode method, which would return "%2fHome%2fAbout" given the foregoing URL.

See Also

Reference