summaryM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})

Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc (in DotNetNuke.Web.Mvc.dll)

Syntax

C#
public static MvcHtmlString ActionLink(
	this DnnHtmlHelper htmlHelper,
	string linkText,
	string actionName,
	string controllerName,
	string protocol,
	string hostName,
	string fragment,
	RouteValueDictionary routeValues,
	IDictionary<string, Object> htmlAttributes
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function ActionLink ( 
	htmlHelper As DnnHtmlHelper,
	linkText As String,
	actionName As String,
	controllerName As String,
	protocol As String,
	hostName As String,
	fragment As String,
	routeValues As RouteValueDictionary,
	htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString

Parameters

htmlHelper
Type: DotNetNuke.Web.Mvc.Helpers..::..DnnHtmlHelper
paramhtmlHelperM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
linkText
Type: System..::..String
paramlinkTextM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
actionName
Type: System..::..String
paramactionNameM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
controllerName
Type: System..::..String
paramcontrollerNameM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
protocol
Type: System..::..String
paramprotocolM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
hostName
Type: System..::..String
paramhostNameM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
fragment
Type: System..::..String
paramfragmentM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
routeValues
Type: System.Web.Routing..::..RouteValueDictionary
paramrouteValuesM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})
htmlAttributes
Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, Object>)>)>
paramhtmlAttributesM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})

Return Value

returnsM:DotNetNuke.Web.Mvc.Helpers.HtmlLinkExtensions.ActionLink(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper,System.String,System.String,System.String,System.String,System.String,System.String,System.Web.Routing.RouteValueDictionary,System.Collections.Generic.IDictionary{System.String,System.Object})

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DnnHtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also