Write a program to Enable Disable TextBox Programmatically in Asp .Net

 Write a program to Enable Disable TextBox Programmatically in Asp .Net

HTML:

 

  
 

 

Source Code:

 

protected void btnDisableTextBox_Click(object sender, EventArgs e)
    {
        txtTest.Enabled = false;
    }
    protected void btnEnableTextBox_Click(object sender, EventArgs e)
    {
        txtTest.Enabled = true;
    }

 


Final Output: 

Enable-Disable-TextBoxe-Programmatically-asp-net-practicle-question-codingfusion

 
Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
1 + 3 =
 

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