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()"/>