Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

LinkExtensions.ActionLink Method

 

LinkExtensions.ActionLink Method (HtmlHelper, String, String)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, Object)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	object routeValues
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

routeValues
Type: System.Object

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, Object, Object)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	object routeValues,
	object htmlAttributes
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

routeValues
Type: System.Object

htmlAttributes
Type: System.Object

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, RouteValueDictionary)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	RouteValueDictionary routeValues
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

routeValues
Type: System.Web.Routing.RouteValueDictionary

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, RouteValueDictionary, IDictionary<String, Object>)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	RouteValueDictionary routeValues,
	IDictionary<stringobject> htmlAttributes
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

routeValues
Type: System.Web.Routing.RouteValueDictionary

htmlAttributes
Type: System.Collections.Generic.IDictionary<StringObject>

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, String)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	string controllerName
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

controllerName
Type: System.String

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, String, Object, Object)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	string controllerName,
	object routeValues,
	object htmlAttributes
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

controllerName
Type: System.String

routeValues
Type: System.Object

htmlAttributes
Type: System.Object

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, String, RouteValueDictionary, IDictionary<String, Object>)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	string controllerName,
	RouteValueDictionary routeValues,
	IDictionary<stringobject> htmlAttributes
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

controllerName
Type: System.String

routeValues
Type: System.Web.Routing.RouteValueDictionary

htmlAttributes
Type: System.Collections.Generic.IDictionary<StringObject>

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, String, String, String, String, Object, Object)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	string controllerName,
	string protocol,
	string hostName,
	string fragment,
	object routeValues,
	object htmlAttributes
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

controllerName
Type: System.String

protocol
Type: System.String

hostName
Type: System.String

fragment
Type: System.String

routeValues
Type: System.Object

htmlAttributes
Type: System.Object

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top

LinkExtensions.ActionLink Method (HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>)

public static MvcHtmlString ActionLink(
	this HtmlHelper htmlHelper,
	string linkText,
	string actionName,
	string controllerName,
	string protocol,
	string hostName,
	string fragment,
	RouteValueDictionary routeValues,
	IDictionary<stringobject> htmlAttributes
)

Parameters

htmlHelper
Type: System.Web.Mvc.HtmlHelper

linkText
Type: System.String

actionName
Type: System.String

controllerName
Type: System.String

protocol
Type: System.String

hostName
Type: System.String

fragment
Type: System.String

routeValues
Type: System.Web.Routing.RouteValueDictionary

htmlAttributes
Type: System.Collections.Generic.IDictionary<StringObject>

Return Value

Type: System.Web.Mvc.MvcHtmlString

Return to top
Show:
© 2015 Microsoft