GenerateLink Method

HtmlHelper.GenerateLink Method

Generates an HTML anchor element (a element) that links 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
Public method Static member GenerateLink(RequestContext, RouteCollection, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>) Generates an HTML anchor element (a element) that links to the specified action method.
Public method Static member GenerateLink(RequestContext, RouteCollection, String, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>) Generates an HTML anchor element (a element) that links to the specified action method, and enables the user to specify the communication protocol, name of the host, and a URL fragment.
Top

The LinkExtensions class contains an ActionLink method that has several overloads that provide additional options for creating links to action methods.

Show:
© 2016 Microsoft