title: How to create a readonly text using html helper in asp.net mvc?
body: <p>I want to disable a textbox in the view. So I use following code:</p>
  
  <pre><code>&lt;%= Html.TextBox("ID", Model.ID, new { readonly="true" })%&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>&lt;%= Html.TextBox("ID", Model.ID, new { enable="false" })%&gt;
  </code></pre>
  
  <p>Both of them don't work.  what's the solution?</p>