日期:2014-05-18 浏览次数:20532 次
<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;
}