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

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