Wrong. You have to put a property of a textbox control on the end of it to check it:
if(textBox.Text != String.Empty)
{
//not empty (not null, even empty and null are not the same things)
}
else
{
//empty!
}
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
No problem. Just thread as answered (or vote as useful), to close the thread.
bye
Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474