Write a program to change width of TextBox programmatically in Asp .Net

 Write a program to change width of TextBox programmatically in Asp .Net

HTML:

 

  
Enter TextBox Width
 

 

Code Behind:

 

protected void btnChangeTextBoxWidth_Click(object sender, EventArgs e)
    {
        txtWidth.Width = Convert.ToInt32(txtWidth.Text);
    }

 


Final Output:

Change-TextBox-Width-Programmatically-asp-net-Practicle-question-codingfusion

 

 
Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
6 + 8 =
 

About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2024 CodingFusion
50+ C# Programs for beginners to practice