判断是否重复录入

来源:互联网 发布:jquery如何定义数组 编辑:程序博客网 时间:2024/05/16 23:47
 Dqt.Reporter.Model.user UserModel = new Dqt.Reporter.Model.user();        List<Dqt.Reporter.Model.user> userlist = UserBLL.GetModelList("UserName='" + this.TxtUserName.Text.Trim() + "'");        if (userlist.Count > 0)        {            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('请勿重复录入!');", true);            return;        }


0 0
原创粉丝点击