function showMsg0() {
$.message({
title: '信息',
content: 'new或NEW是保护字,不可以选为名字简称!',
buttons: {
OK: {
text: 'OK',
btnClass: 'btn-green',
keys: ['enter'],
action: function () {
//$.alert('You clicked OK!');
}
},
}
});
return false;
};
...
protected void userabbr_post_change(object sender, EventArgs e)
{
if (tb_userabbr.Text.ToUpper() == "NEW")
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "showMsg0()", true);
tb_userabbr.Text = "";
return;
}
}
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.