Can you bind to an object when posting with jQuery?
You can call this controller action
public ActionResult AddCar(Car myCar)
{
. . .
}
Where the properties of the form using the binding of ASP.NET MVC to populate the properties of the car.
If I am posting via ajax and jQuery can I do the same thing?
If you have an HTML form containing inputs to bind to the object:
Or if you don’t have a form and you want to bind the object properties manually: