How to show text?
how to show text then click the button . But text mode property is password. I want to show Text. ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep ShekhawatPosted Jun 28, 2011, 12:19 AM
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.
Suthish NairPosted Jun 28, 2011, 1:37 AM
Response.Write(txtPass.Text);
Vilas GitePosted Jun 28, 2011, 12:28 AM
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"!