那在后台代码(.cs文件)Page_Load函数里写
this.btn_Submit.Attributes.Add("onclick","return myConfirm()");
<SCRIPT language="javascript">
function myConfirm()
{
var Result=confirm("您确实要删除吗?");
//alert(Result);
if(Result==false)
{
return false;
}
else
{
return true;
}
}
</SCRIPT>
this.btn_Submit.Attributes.Add("onclick","return myConfirm()");
<SCRIPT language="javascript">
function myConfirm()
{
var Result=confirm("您确实要删除吗?");
//alert(Result);
if(Result==false)
{
return false;
}
else
{
return true;
}
}
</SCRIPT>