Textbox using textmode password not showing text asp.net c#

后端 未结 7 1976
刺人心
刺人心 2021-01-31 18:20

I have a few buttons on a web form, and when the user clicks them they will update the the textbox. This worked till I added the textmode = password. Now the textbox doesn\'t sh

7条回答
  •  佛祖请我去吃肉
    2021-01-31 18:52

    When you set property of textbox to TextMode="Password" then in edit mode textbox display blank. If you fill value like

    TextBox.Text = "Password";
    

    then not working and you need to enter password again to save form. You can use Attributes to fill value in textbox like below code.

    TextBox.Attributes["value"] = "your password value";
    

提交回复
热议问题