title: How can you assign the value Nothing to a control attribute declaratively in a VB.Net ASPX file?
body: <p>If I have a control that has a read/write property of type <strong>Nullable(Of Integer)</strong> (or <strong>Integer?</strong>, if you prefer the shorthand), how can you assign the <strong>Nothing</strong> value as an attribute in the ASPX/ASCX definition (as opposed to setting it in the codebehind)?</p>
  
  <p>E.g. a <code>System.Web.UI.WebControls.TextBox</code> control has a read/write property called <code>MaxLength</code> of type <code>Integer</code>.  I can set this in the ASPX by including the property name as an attribute in the declaration, like this:</p>
  
  <p><code>&lt;asp:TextBox id=”myTextBox” runat=”server” MaxLength=”30” /&gt;</code></p>
  
  <p>Indeed, I can set my <code>Integer?</code> property in the same way so long as I’m assigning an integer, but I want to set the property to <code>Nothing</code>.</p>
  
  <p>Any ideas? </p>