【发布时间】:2016-07-25 17:01:49
【问题描述】:
我有一个注册用户的引导模式。我想在成功注册或一些警报后向用户显示 jquery 警报。这是我的按钮。
<div class="modal-footer">
<asp:Button ID="btnn_register" runat="server" CssClass="btn btn-primary" Text="register" OnClick="btnn_register_Click" ValidationGroup="aaa" />
</div>
后面的代码:
protected void btnn_register_Click(object sender, EventArgs e)
{
//some code
if (bluser.check_username() == true)
{
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "asdf", "info()", true);
}
else
{
//do something
if (Page.IsValid)
{
//some codes
}
和我的脚本:
<script>
notie.setOptions({
colorSuccess: '#57BF57',
colorWarning: '#D6A14D',
colorError: '#E1715B',
colorInfo: '#4D82D6',
colorNeutral: '#A0A0A0',
colorText: '#FFFFFF',
animationDelay: 300,
backgroundClickDismiss: true
})
function info() {
notie.alert(4, 'some information', 2)
}
}
}
</script>
但是当我运行代码时它不起作用。 谁能帮帮我?
【问题讨论】:
-
请帮帮我...非常感谢
标签: javascript jquery asp.net twitter-bootstrap bootstrap-modal