因为TextBox编译之后是Input,利用Input的Value赋值方法实现.

<asp:TextBox ID="txtPassword" runat="server" TextMode="password" MaxLength="30"></asp:TextBox>

 

赋值的时候:

txtPassword.Attributes.Add("Value""1234");


 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-05-18
  • 2021-11-29
  • 2021-05-22
  • 2021-08-19
猜你喜欢
  • 2022-03-04
  • 2021-10-08
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案