给密码类型的TextBox赋值 对于密码类型的TextBox控件,直接用 TextBox1.Text = value; 是无效的,正确的做法应该如下: TextBox1.Attributes.Add("value",value);