我正在使用以下信息框在asp.net Web应用程序中。现在我想将此消息框转换为确认消息框,并在它为true时执行某些操作,否则拒绝该应用程序。
ScriptManager.RegisterStartupScript(this, this.GetType(), "temp", "<script language='javascript'>alert('Are you sure, you want to apply?');</script>", false);