http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.action.aspx
| 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 |
|
Action(String) |
Generates a fully qualified URL to an action method by using the specified action name. |
|
Action(String, Object) |
Generates a fully qualified URL to an action method by using the specified action name and route values. |
|
Action(String, String) |
Generates a fully qualified URL to an action method by using the specified action name and controller name. |
|
Action(String, RouteValueDictionary) |
Generates a fully qualified URL to an action method for the specified action name and route values. |
|
Action(String, String, Object) |
Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values. |
|
Action(String, String, RouteValueDictionary) |
Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values. |
|
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. |
|
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. |
TopRemarks
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
ReferenceUrlHelper ClassUrlHelper MembersSystem.Web.Mvc Namespace