ASP.NET AJAX时用alert弹出对话框
时间:2021-07-01 10:21:17
帮助过:53人阅读
ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "click", "alert('删除成功"+queryId+"')", true);
解决 asp.net onClientClick 与 验证控件冲突问题
<script type="text/javascript">
function checkSubmit(){
Page_ClientValidate(); //自带函数
return checkUpload();
}
}
</script>
<asp:Button ID="btnUpdateWebInfo" Text="保存" runat="server" CssClass="button" OnClick="btnUpdateWebInfo_Click" OnClientClick="return checkSubmit()"/>