JS调用后台函数的问题
<asp:CheckBox ID="CheckBox1" runat="server" onclick='<%# "cbdelete(this,\""+Eval("value").ToString()+"\")" %>' /> function cbdelete(obj,id) {if (confirm("你确定要删除吗?") == true) { var tempfc = '<%# ttest("' + id + '") %>'; } else { }} public string ttest(string uid) { InfoDAL.Users us = new InfoDAL.Users(); bool result = us.Delete(uid); if (result) { return uid; } else { return uid; } return uid; }