<asp:TextBox ID="txt_Pname" runat="server" TextMode="Password"></asp:TextBox>

 

当‍TextBox TextMode为Password从数据库绑定时

 

this.txt_Pname.Text = table.Rows[0]["Title"].ToString();

 

这样是显示不出有值的!

 

可以这么写:‍this.txt_Pname.Attributes["value"] = table.Rows[0]["Title"].ToString();

 

这样就可以的;

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2021-10-18
  • 2021-12-27
  • 2021-08-10
  • 2021-06-30
  • 2022-02-19
猜你喜欢
  • 2021-10-08
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-12-16
  • 2021-06-19
相关资源
相似解决方案