Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 16th, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. passing model in checkbox?
  2. [DisplayName("waiting for activation")]
  3. public string  Awaiting { get; set; }
  4.        
  5. <div class="field forCheckbox">                            
  6.     <%:Html.CheckBoxFor(model=>model.Awaiting)%>                        
  7.     <%:Html.LabelFor(model=>model.Awaiting) %>                  
  8.     <%:Html.ValidationMessageFor(model=>model.Awaiting) %>
  9. </div>
  10.        
  11. public bool Awaiting { get; set; }
  12.        
  13. public bool Awaiting { get; set; }