Solution ----


Title
Ajax.ActionLink without text
Titre
Ajax.ActionLink sans texte
Título
Url
Language:
Razor, C#
Framework
Asp.Net, Ajax
SOLUTION:

Write a custom Helper (écrire votre helper):

public static class myHelpers
{
public static IHtmlString myActionLink(
this AjaxHelper ajaxHelper,
string actionName,
string controllerName,
object routeValues,
AjaxOptions ajaxOptions,
object htmlAttributes
)
{
return ajaxHelper.ActionLink(
" ",
actionName,
controllerName,
routeValues,
ajaxOptions,
htmlAttributes
);
}
}

Use (Utilisation):

@Ajax.myActionLink(
    "action", 
    "controller", 
    new { 
        
    }, 
    new AjaxOptions { 
        
    }, 
    new { @class = "myClass" }
)
;
Source
InforMaths
Free
Rate
Date
2017/05/20

Back to List