To use image instead of text in Ajax.Actionlink is not possible directly so we have to user indirect method for it.
Using Direct image
< %= Ajax.ActionLink("[Add]", "About", new AjaxOptions { }).Replace("[Add]", "< [img] src = \" ../../Content/add.jpg\ " alt = \"image\" / >" )% >
Using div
[< %=Ajax.ActionLink("[Add]", "About", new AjaxOptions { }).Replace("[Add]", "< class ="\">< /div >")% >]
No comments:
Post a Comment