title: ASP.NET TextBox Control - Get the default text value in code behind?
body: <p>I have been spying the MSDN and can't see a property/method for TextBox that allows you to get the default text value that was set on a field; I want to be able to compare the current txtMyTextBox.Text to the default value (like this psuedo code shows):</p>
  
  <pre><code>var myValue = (String.Compare(txtMyTextBox.Text, txtMyTextBox.DefaultText) ? "" : txtMyTextBox.Text)
  </code></pre>
  
  <p>Is this something which exists in the ASP.NET control? Or am I asking too much? :)</p>
  
  <p>Thanks for any help (as always)!</p>
  
  <p>Pete</p>