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

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 11  |  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. Adding feedback feature to all pages
  2. @model FeedbackHelper
  3.     Name:<br />
  4.     @Html.TextBoxFor(o=>Model.Name)
  5.        
  6. public ActionResult Feedback()
  7. {
  8.     FeedbackHelper model = ...
  9.     return PartialView(model);
  10. }
  11.        
  12. @model FeedbackHelper
  13. Name:<br />
  14. @Html.TextBoxFor(o => o.Name)
  15.        
  16. @Html.Action("Feedback", "ControllerContainingTheFeedbackAction")