【发布时间】:2013-06-22 10:01:35
【问题描述】:
当用户输入错误的 ıd 或密码时,我想显示一个消息框。我将以下函数写入 .aspx 文件:
<script type="text/javascript">
function warningMessage() {
$.msgBox({
title: "Hatalı Giriş",
content: "Kullanıcı numarası ya da şifre hatalı...",
type: "error",
buttons: [{ value: "Ok" }]
});
}
</script>
我将以下代码写入 aspx.cs 文件:
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "warningMessage ", "warningMessage()", false);
但此代码不起作用。你能帮帮我吗?
【问题讨论】:
标签: c# javascript msgbox