代码
<asp:Button ID="btnSave" runat="server" ValidationGroup="validate" class="an" OnClientClick="if(!ConfirmAction('域名只能设置一次,确定设置吗?')){return false;}" Text="设置" onclick="btnSave_Click" />
<script type="text/javascript">
function ConfirmAction(strMessage) {
if (Page_ClientValidate()) {
return confirm(strMessage);
}
else {
return false;
}
}
</script>
function ConfirmAction(strMessage) {
if (Page_ClientValidate()) {
return confirm(strMessage);
}
else {
return false;
}
}
</script>