|
<head> <script type = "text/javascript"> function check() { if(选择了) if(confirm('delete?')) { return true;} else { return false;} else {alert('no select item'); return false;} } </script> </head>
LinkButton1.add("onclick","return check();");
2005有OnClientClick属性 正解 在web控件里有onClientClick事件 在里面直接写return return confirm('您是否真的删除所选商品?');
|
一共有 1 条评论