0

我正在使用以下脚本来显示确认消息框。我想检查确认状态是否正常。我怎样才能检查这个?

ScriptManager.RegisterStartupScript(this, this.GetType(), "temp", "<script language='Javascript'>confirm('ERROR ALERT : " + status + " You can not create record for the above list! Do you want to proceed ?');</script>", false);
4

1 回答 1

0

确认返回布尔值,您可以将其分配给变量,在此处(true or false)了解有关确认的更多信息。

ScriptManager.RegisterStartupScript(this, this.GetType(), "temp", "<script language='Javascript'>result = confirm('ERROR ALERT : " + status + " You can not create record for the above list! Do you want to proceed ?');</script>", false);
于 2013-03-18T07:17:59.793 回答