Hi all,
Apologies for another beginner question, but once again (as a novice to Visual Studio/C#/ASP, coming from a Delphi background) I am struggling to find an answer to what I imagine must be a simple problem?
I have a webpage with only 2 controls, Textbox1 and Button1. On the Page_Load , I have a line of code which says:
protected void Page_Load(object sender, EventArgs e)
{
Button1.Enabled = false;
}
All I want to do is to be able to enable/disable the button depending upon whether or not Textbox1 contains anything. As a newcomer, I thought the answer was simple:
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Button1.Enabled = (TextBox1.Text=="") ;
}
but I should really have known by now that there is NO such things as ...
Go to the complete details ...