I am new to asp.net MVC and i am wondering how i would go about passing a date from a Jquery DateTime picker and pass it across to the controller then do some linq and return the new value to the page.
I have had a play around with @Html.BeginForm but with no joy.
ViewCode
@Html.BeginForm("GetSigmaDateInfo", "HomeController", FormMethod.Post)
{
<h3>Date :</h3> <input type="text" id="dp" />
<input type="submit" value="Update" />
}
On the button click above i would like to retrieve data from a linq statement and return it to the page.
Controller Code
[HttpPost]
public ActionResult GetSigmaDateInfo(string Date)
{
string test = null;
return View();
}