Text Box Property cannot be changed
<p>I'm creating a web page. I've added a <code>textbox</code> at design time and changed its <code>textmode</code> property to date.</p>

<p>I'm getting the following error when viewing it in a browser: <em>(if i change the textbox property to "single line" I dont get the error)</em></p>

<blockquote>
  <p>Parser Error</p>
  
  <p>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. </p>
  
  <p>Parser Error Message: Cannot create an object of type </p>
  
  <p>'System.Web.UI.WebControls.TextBoxMode' from its string representation
  'Date' for the 'TextMode' property.</p>
</blockquote>

<pre><code>Source Error:

Line 20:             &lt;tr&gt;
Line 21:                 &lt;td&gt;
Line 22:                     &lt;asp:TextBox ID="TextBox1" runat="server" TextMode="Date"&gt;&lt;/asp:TextBox&gt;
Line 23:                 &lt;/td&gt;
Line 24:                 &lt;td&gt;&amp;nbsp;&lt;/td&gt;
</code></pre>
