protected void TextBox1_TextChanged(object sender, EventArgs e) { if(TextBox1.Text.Trim().Length > 0) { Button.Enabled = true; } }
&& TextBox2.Text.Trim().Length > 0
private void textBox1_TextChanged(object sender, EventArgs e) { if (textBox1.Text.Trim().Length > 0) { if (textBox2.Text.Trim().Length > 0) { dataGridView1.Visible = true; } } } private void textBox2_TextChanged(object sender, EventArgs e) { textBox1_TextChanged(sender, e); }
document.getElementById("your button id").disabled = false;
protected void TextBox1_TextChanged(object sender, EventArgs e) { if(TextBox1.Text1 != 0) { Button.Enabled = true; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)