[CLOSED] Rebind form controls with new model on ajax request / How can I update a model of a view with ajax?
Hi,
i have a Asp.Net MVC view (razor) to which i pass a viewmodel object.
Code:
public ActionResult PageName()
{
return View(Modelobj);
}
The view consist of a formpanel. Which has many controls in it.
On Select event of a combobox (the combobox is in formpanel) i wanna make a ajax call to a actionmethod, which will return updated viewmodel object to same view. Thus, will update all controls with new values.
How can i achieve This?