ASP.NET MVC ActionLink in jquery-tmpl template
Posted
by
Justin
on Stack Overflow
See other posts from Stack Overflow
or by Justin
Published on 2011-05-04T20:29:27Z
Indexed on
2012/12/08
5:04 UTC
Read the original article
Hit count: 224
I have a jquery-tmpl defined:
<script id="postTemplate" type="text/x-jquery-tmpl">
<div class="div-msg-actions-inner">
@Html.ActionLink("Edit", "Edit", "Post", new { postId = "${PostId}" }, new { @class = "button" })
@Html.ActionLink("Reply", "Reply", "Post", new { topicId = "${TopicId}" }, new { @class = "button" })
</div>
</script>
The action link results in the "$" being encoded into "%24". Is there a way around this so the ID in my action link will get replaced correctly?
© Stack Overflow or respective owner