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: