Export (0) Print
Expand All

LinkExtensions.ActionLink Method

Returns an anchor element (a element) that contains the virtual path of the specified action.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member ActionLink(HtmlHelper, String, String) Returns an anchor element (a element) for the specified link text and action.
Public method Static member ActionLink(HtmlHelper, String, String, Object) Returns an anchor element (a element) for the specified link text, action, and route values.
Public method Static member ActionLink(HtmlHelper, String, String, String) Returns an anchor element (a element) for the specified link text, action, and controller.
Public method Static member ActionLink(HtmlHelper, String, String, RouteValueDictionary) Returns an anchor element (a element) for the specified link text, action, and route values as a route value dictionary.
Public method Static member ActionLink(HtmlHelper, String, String, Object, Object) Returns an anchor element (a element) for the specified link text, action, route values, and HTML attributes.
Public method Static member ActionLink(HtmlHelper, String, String, RouteValueDictionary, IDictionary<String, Object>) Returns an anchor element (a element) for the specified link text, action, route values as a route value dictionary, and HTML attributes as a dictionary.
Public method Static member ActionLink(HtmlHelper, String, String, String, Object, Object) Returns an anchor element (a element) for the specified link text, action, controller, route values, and HTML attributes.
Public method Static member ActionLink(HtmlHelper, String, String, String, RouteValueDictionary, IDictionary<String, Object>) Returns an anchor element (a element) for the specified link text, action, controller, route values as a route value dictionary, and HTML attributes as a dictionary.
Public method Static member ActionLink(HtmlHelper, String, String, String, String, String, String, Object, Object) Returns an anchor element (a element) for the specified link text, action, controller, protocol, host name, URL fragment, route values, and HTML attributes.
Public method Static member ActionLink(HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>) Returns an anchor element (a element) for the specified link text, action, controller, protocol, host name, URL fragment, route values as a route value dictionary, and HTML attributes as a dictionary.
Top

The ActionLink method renders an element that links to an action method.

Show:
© 2014 Microsoft