ASP.NET AJAX时用alert弹出对话框
发布时间:2016-12-29 来源:查字典编辑
摘要:ScriptManager.RegisterClientScriptBlock(UpdatePanel1,this.GetType(),"c...
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" OnClientClick="return checkSubmit()"/>