btnDelete.Attributes["OnClick"] + = " return confirm('Do you really want to delete this fund?');"; 这个我试过了,还是不行的, 一样是两个onclick。改名如何改?
try: 将CausesValidation=设为False btnDelete.Attributes["onclick"]="javascript:if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate();return confirm('Do you really want to delete this fund?');";
这个我试过了,还是不行的, 一样是两个onclick。改名如何改?
将CausesValidation=设为False
btnDelete.Attributes["onclick"]="javascript:if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate();return confirm('Do you really want to delete this fund?');";