Checking textbox for values in code behind C#
<p>I'm perplexed about something in my code here and hoping that someone can clue me in here.</p>

<p>I am trying to check to see if my user has populated a textbox before I write data out to a record so I'm using this code below to check to see if the text box is populated or not. But this 'always' comes back as true and proceeds as if the user has placed text in the even if there is none.</p>

<pre><code>if (ReasonTextBox.Text.ToString() != null)
   {
    //Some commands to write data to a table
   }
 else
   {
     //Some alternative things to do
   }
</code></pre>

<p>I've also done this without the ".ToString()" with the same results. As I've observed it in debug with or without text in the Textbox the code will step into the procedure regardless.</p>

<p>Soooooo... Being that I am fairly new to writing web sites in C# I must be missing something here apparently a blank textbox isn't really null? If that is the case, how would you suggest I go about checking for it being populated or not?</p>