title: MVC4 Hide or disable field using controller
body: <p>Im new to mvc4, nw i got an issue. <br/>
  In Controller i will check Which field should be hide or disable.<br/>
  For normal c# i can use .visible to solve,</p>
  
  <p>but MVC4 + razor, i Totally no idea
  i do not want to add css class for every textbox,textarea like below<br/></p>
  
  <p>@Html.TextAreaFor(model => model.Message, new { @class = "hide" })<br/></p>
  
  <p>1- Javascript<br/></p>
  
  <p>//construct hidden field in controller<br/>
  Viewbag.hideField = "#message,blah,blah";<br/></p>
  
  <p>//hide with javascript in view<br/>
  $(@Viewbag.hideField).hide();<br/></p>
  
  <p>This is all i can think of, any gorgeous way to achieve this...</p>
  
  <p>These field are dynamic, it based on user role to determine its show or hide,
  if i do this checking in view, it will be tedious job to do, 
  so i thinking is there anyway i can do it programmatic in controller.</p>