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

 
We are nothing without our users ! You can help us offer even more high quality content. Please share our page !
Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
1 + 2 =
 
About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2019 CodingFusion
75 Important SQL Server queries you should know