Export (0) Print
Expand All

HtmlHelper.GenerateLink Method

.NET Framework 4

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.

  NameDescription
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.

Community Additions

ADD
Show:
© 2014 Microsoft