Hi,
I am trying to replace Ajax ActionLink with image instead of text but not getting done, my code is as below, can any one help?
@Ajax.ActionLink("Add ", "LogsGetData", "Logs", new { Id = 0 },
new AjaxOptions
{
UpdateTargetId = "LogEntryDiv",
InsertionMode = InsertionMode.Replace,
HttpMethod = "GET",
OnSuccess = "SettingsOnSuccess"
}).ToHtmlString().Replace("Add", "<img src=\"Content/Telerik/Office2007/sprite.png\" ... />")
Above code replace the text "Add" with <a data-ajax="true" data-ajax-method="GET" data-ajax-mode="replace" data-ajax-success="SettingsOnSuccess" data-ajax-update="#LogEntryDiv" but doesn't get the image.
I am trying to replace Ajax ActionLink with image instead of text but not getting done, my code is as below, can any one help?
@Ajax.ActionLink("Add ", "LogsGetData", "Logs", new { Id = 0 },
new AjaxOptions
{
UpdateTargetId = "LogEntryDiv",
InsertionMode = InsertionMode.Replace,
HttpMethod = "GET",
OnSuccess = "SettingsOnSuccess"
}).ToHtmlString().Replace("Add", "<img src=\"Content/Telerik/Office2007/sprite.png\" ... />")
Above code replace the text "Add" with <a data-ajax="true" data-ajax-method="GET" data-ajax-mode="replace" data-ajax-success="SettingsOnSuccess" data-ajax-update="#LogEntryDiv" but doesn't get the image.