How to show text?
how to show text then click the button . But text mode property is password. I want to show Text. ?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 27, 2011, 8:19 PM EDT
protected void Button1_Click(object sender, EventArgs e)
{
TextBox1.Attributes.Add("onclick", "this.type='text';");
lb1.Text = TextBox1.Text;
}
Here change Textmode property of after button click event.
Vilas GiteRank #951 · 2.1K reputationPosted Jun 27, 2011, 8:28 PM EDT
private void Form1_Load(object sender, EventArgs e)
{
textBox1.Text = "";
textBox1.PasswordChar = '*';
textBox1.MaxLength = 15;
}
private void button1_Click(object sender, EventArgs e)
{
label2.Text = textBox1.Text.ToString();
label2.Show();
}
----------------
If this reply hepls your post…then "MARK AS ANSWER"!
Suthish NairRank #92 · 22.8K reputationPosted Jun 27, 2011, 9:37 PM EDT
Response.Write(txtPass.Text);