Partager via


HtmlHelper.GenerateLink Method

Include Protected Members
Include Inherited Members

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.

Overload List

  Name Description
Public methodStatic 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 methodStatic 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

Remarks

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

See Also

Reference

HtmlHelper Class

System.Web.Mvc Namespace