title: MVC : Set disabled or no for a textbox in HTMLAttribute
body: <p>In my HTML file, I have a textbox which must be disabled or enable, depending on my controller value. 
  No problem to set it in disabled mode, but to set it enable... </p>
  
  <p>this is my code : </p>
  
  <pre><code>&lt;%= Html.TextBoxFor(model =&gt; model.test, new Dictionary&lt;string, object&gt; { { "disabled", ViewContext.RouteData.Values["controller"].ToString() == "MyTest" ? "" : "disabled"}}
  </code></pre>
  
  <p>I have seen some ideas on this question  : <a href="https://stackoverflow.com/questions/2499835/how-to-set-disabled-in-mvc-htmlattribute">here</a></p>
  
  <p>mvccontrib.FluentHtml or InputExtensions are the single solutions, to answer to my question ??? </p>
  
  <p>Im using "disabled" but I can use "read-only" attribute... the goal of this code is not to allow the user to fill the text box... </p>
  
  <p>Thanks for your advices on the subject.</p>