Zone de texte utilisant le mot de passe textmode ne montrant pas le texte asp.net c #

J'ai quelques boutons sur un formulaire web, et lorsque l'utilisateur clique sur eux, ils vont mettre à jour la zone de texte. Cela a fonctionné jusqu'j'ai ajouté la textmode = mot de passe. Maintenant la zone de texte n'affiche pas le texte plus. Je déboguer l'application et le texte de la propriété est l'obtention de la valeur, mais encore une fois c'est pas à l'affiche.

Voici ce que j'ai essayé:

 protected void btn_punch_7_Click(object sender, EventArgs e)
    {

        const string string_punch_Number_7 = "7";
        var text = txt_punch.Text;
        text += string_punch_Number_7;

        txt_punch.Text = text;


    }

    protected void btn_punch_8_Click(object sender, EventArgs e)
    {
        const string string_punch_Number_8 = "8";
        var text = txt_punch.Text;
        text += string_punch_Number_8;

        txt_punch.Text = text;

    }

J'ai aussi fatigué ce:

public partial class WebForm3 : System.Web.UI.Page
{
    public string string_punch;
    protected void Page_Load(object sender, EventArgs e)
    {
        MultiView1.SetActiveView(View1);

        txt_punch.Width = 300;
        txt_punch.Height = 50;
        txt_punch.MaxLength = 4;
        txt_punch.Attributes.Add("OnChange", string_punch);

    }

    protected void btn_punch_7_Click(object sender, EventArgs e)
    {

        const string string_punch_Number_7 = "7";
        string_punch = txt_punch.Text;
        string_punch += string_punch_Number_7;

        txt_punch.Text = string_punch;


    }

    protected void btn_punch_8_Click(object sender, EventArgs e)
    {
        const string string_punch_Number_8 = "8";
        string_punch = txt_punch.Text;
        string_punch += string_punch_Number_8;

        txt_punch.Text = string_punch;

    }

source d'informationauteur nate | 2013-05-24