I\'ve been looking at the question here: MVC ajax json post to controller action method but unfortunately it doesn\'t seem to be helping me. Mine is pretty much the exact sa
try this:
/////// Controller post and get simple text value
[HttpPost]
public string Contact(string message)
{
return "Hi,
we got your message,
" + message + "
Thanks a lot";
}
//// in the view add reference to the Javascript (jQuery) files
@section Scripts{
}
/// then add the Post method as following: