asp.net改变控件颜色(用于提醒用户输入有误等场合)

来源:互联网 发布:idc平台源码 编辑:程序博客网 时间:2024/05/22 10:28

 UserData user=new UserData();

if (this.TB_PSW.Text == this.TB_RPSW.Text)//如果重复密码无误,则记录密码,否则改变重复密码提示框的颜色

                {
                    user.Password = this.TB_PSW.Text;
                }
                else {
                    this.LB_RPSW.BackColor = System.Drawing.Color.Red;

                }



原创粉丝点击