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

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 12  |  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. MVC Call Controller/Method from Jquery
  2. <a href='@Url.Action("EmailPerson", "SupportNeeded")'> Email </a>
  3.        
  4. '@Url.Action("EmailPerson", "SupportNeeded")'
  5.        
  6. window.location = '@Url.Action("EmailPerson", "SupportNeeded")';
  7.        
  8. $.get("@Url.Action("EmailPerson", "SupportNeeded")");
  9.        
  10. window.location.href = "@Url.Action("EmailPerson", "SupportNeeded")";