0
我想在用户输入错误的ıd或密码时显示一个消息框。我写如下函数.aspx文件:jquery msgBox在代码后面执行(c#)
<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);
但是这个代码不工作。你可以帮我吗?
这不起作用。但是当我将true改为false时,它显示warningMessage();在网页的顶部 – the4u
那么它确实..将函数warningMessage()的代码更改为这个'{alert('Check'); }'并评论其他一切..然后尝试.. – Bhavik
谢谢,但我知道它。我想给消息框一个标题,我知道我必须使用jquery msgBox内置方法来给标题。 – the4u