有些时候可能需要在后台给TextBox设置默认密码,只设置
TextBox.Text = "password"
"password"
并不能达到效果,前台的框框还是为空的,还需要设置另一个属性
TextBox.Attributes["value"] = "password"
TextBox.Attributes[
"value"
] =
Powered by: 博客园 Copyright © 2024 漂泊一生 Powered by .NET 9.0 on Kubernetes