" @ Url.Action(" UpdateNgTemplate"," Account",new {UserName =
Here i want to pass a code of jquery like -- $('#btn').attr('key'); ---
})"
答案 0 :(得分:0)
我认为你想要这样的东西:
<script>
window.location = "@Url.Action("UpdateNgTemplate", "Account")" +
"?UserName=" + $('#btn').attr('key');
</script>
但很难从你问题中提供的信息中辨别出来......