我们如何在C#.Net Block of Code中编写一个jquery代码

时间:2014-06-10 14:17:15

标签: jquery

" @ Url.Action(" UpdateNgTemplate"," Account",new {UserName =

 Here i want to pass a code of jquery like  --  $('#btn').attr('key'); ---

})"

1 个答案:

答案 0 :(得分:0)

我认为你想要这样的东西:

<script>
    window.location = "@Url.Action("UpdateNgTemplate", "Account")" + 
                      "?UserName=" + $('#btn').attr('key');
</script>

但很难从你问题中提供的信息中辨别出来......