title: MVC Textbox with float number using comma: from razor view to the controller . [Globalization?]
body: <p>I'm using MVC3 + Razor.</p>
  
  <p>I'm sending a parameter on a textbox to a Controller. 
  I'm using the "es-AR" globalization.<br>
  I want a float number to have this format:  "9,99" (comma as a decimal separator)</p>
  
  <p>When I put a "comma separator" number in the textbox, the controller receives NULL on the "weight"variable. When I put a "dot separator", the weight float variable is OK. </p>
  
  <p>View: </p>
  
  <pre><code>@Html.TextBox("weight")
  </code></pre>
  
  <p>(Basically, this is a search field. )</p>
  
  <p>Controller: </p>
  
  <pre><code> public ActionResult UserQueryPage(float? weight )
  </code></pre>
  
  <p>web.config: </p>
  
  <pre><code>  &lt;system.web&gt;
  &lt;globalization uiCulture="es" culture="es-AR" /&gt;
  </code></pre>
  
  <p>Is there anything else that I can do about it? 
  Any tip?</p>
  
  <p>Thanks!</p>