$.ajax({
type: "POST",
url: "/Ministry/sendProp",
data: { "statename": staname },
success: function (data) { alert(data.success); },
error: function () { alert("Error"); }
});
staname is the variable containing the string i want to bind to my model property.
statename is the model property i want to bind with staname
[HttpPost]
public ActionResult sendProp(Category c)
{
string state = c.statename;
return this.Json(new { success = state});
}
then you access it this way in the controller