ActionLink() public static method

public static ActionLink ( this htmlHelper, string linkText, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.MvcHtmlString
htmlHelper this
linkText string
result System.Web.Mvc.ActionResult
return System.Web.Mvc.MvcHtmlString
Example #1
0
 public static MvcHtmlString ActionLink <TActionResult>(this HtmlHelper htmlHelper, string linkText, Task <TActionResult> taskResult) where TActionResult : ActionResult
 {
     return(T4Extensions.ActionLink(htmlHelper, linkText, taskResult.Result, (IDictionary <string, object>)null, (string)null, (string)null, (string)null));
 }
Example #2
0
 public static MvcHtmlString ActionLink <TActionResult>(this HtmlHelper htmlHelper, string linkText, Task <TActionResult> taskResult, IDictionary <string, object> htmlAttributes, string protocol, string hostName) where TActionResult : ActionResult
 {
     return(T4Extensions.ActionLink(htmlHelper, linkText, taskResult.Result, htmlAttributes, protocol, hostName, (string)null));
 }
Example #3
0
 public static MvcHtmlString ActionLink <TActionResult>(this AjaxHelper ajaxHelper, string linkText, Task <TActionResult> taskResult, AjaxOptions ajaxOptions) where TActionResult : ActionResult
 {
     return(T4Extensions.ActionLink(ajaxHelper, linkText, taskResult.Result, ajaxOptions));
 }
Example #4
0
 public static MvcHtmlString ActionLink <TActionResult>(this AjaxHelper ajaxHelper, string linkText, Task <TActionResult> taskResult, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes) where TActionResult : ActionResult
 {
     return(T4Extensions.ActionLink(ajaxHelper, linkText, taskResult.Result, ajaxOptions, htmlAttributes));
 }
Example #5
0
 public static MvcHtmlString ActionLink <TActionResult>(this HtmlHelper htmlHelper, string linkText, Task <TActionResult> taskResult, object htmlAttributes) where TActionResult : ActionResult
 {
     return(T4Extensions.ActionLink(htmlHelper, linkText, taskResult.Result, htmlAttributes, (string)null, (string)null, (string)null));
 }