HtmlHelper.GenerateRouteLink Method

Generates an HTML anchor element (a element) that links to a URL route.

  NameDescription
Public method Static member GenerateRouteLink(RequestContext, RouteCollection, String, String, RouteValueDictionary, IDictionary<String, Object>) Generates an HTML anchor element (a element) that links to the specified URL route.
Public method Static member GenerateRouteLink(RequestContext, RouteCollection, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>) Generates an HTML anchor element (a element) that links to the specified URL route.
Top

The LinkExtensions class contains a RouteLink method with several overloads that provide additional options for creating links to URL routes.

Community Additions

Show: