I'm using jQuery to post back to my controller, but i'm wondering how you pass values as parameters in the ActionResult. For example:
I have a jQuery post:
$.post("Home\PostExample")
but i would like to include a value from a dropdown menu:
@Html.DropDownListFor(m => m.Example, Model.Example, new { @id = "exampleCssId" })
into an Actionresult:
[HttpPost]
public ActionResult PostExample(string myString)
{
//TODO: Write contents of ActionResult
}
Any help would be appreciated.
Thanks.