UrlHelper.Action Method
Generates a fully qualified URL to an action method.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the 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 a fully qualified URL for an action method by using the specified action name, controller name, route values, protocol to use, and host name. |
Returned URL
The returned URL is not “\Home\About” (using backslashes, which would be strange in web environment), but rather “/Home/About” (using forward slashes, which is correct).
- 8/30/2009
- Petr Kadlec
