如何创建一个 id 作为按钮的 newguid 并在我的 jquery 脚本中使用它?就像是:
@{ var id = Guid.NewGuid().ToString(); } //
<input type=button id="@id" name="Go" /> @*how can i use this newguid as an id for my button?*@
<script>
@*how can i use this id to attach an eventhandler to for my button?*@
$("@id ).click(function(){
});
</script>