Jul 30, 2013, 2:56 PM
[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.
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?
i have a Asp.Net MVC view (razor) to which i pass a viewmodel object.
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?
Last edited by Daniil; Aug 06, 2013 at 8:25 AM.
Reason: [CLOSED]