Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,

i am trying to pass html action link to my list as html
JavaScript
$("#list1").append('@(Html.ActionLink("' + catNme + '", "CategorySearch", "Search", routeValues: null, htmlAttributes: new { CategoryIds = "' + itemdata.ID_FK + '"}))');

but all the content is displaying on my list.
Posted

1 solution

Try this ,

JavaScript
$("#list1").append('@Html.ActionLink("Back", "Index", "News", null, new { @class = "linkbutton" })');
 
Share this answer
 
v2
Comments
Member 10212775 18-Dec-14 4:56am    
its showing @Html.ActionLink("Back", "Index", "News", null, new { @class = "linkbutton" }) as text

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900