ImageButton的onclick为什么不能调用脚本函数
<script>
function jsDelete()
{
document.all.btn_Del.click( "vTaoLunID ", "vUsers ");
}
</script>
<asp:datagrid........
<asp:ImageButton id= "iBtnRegister " OnClick= 'jsDelete() ' runat= "server " ImageUrl= "../images/X.gif "> </asp:ImageButton>
</asp:datagrid>
提示:并不包含对“jsDelete”的定义
------解决方案--------------------onclick not OnClick
或者在后台
iBtnRegister.Attributes[ "onclick "] = "jsDelete(); ";