[CLOSED] Rebind form controls with new model on ajax request / How can I update a model of a view with ajax?

  1. #1

    [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.

    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]
  2. #2
    Hi @PriceRightHTML5team,

    I think - only reload the page.

    I would suggest to move the respective things into a partial view, then reload that partial view.

Similar Threads

  1. can a view use two model
    By shunilkarki in forum 2.x Help
    Replies: 0
    Last Post: Apr 17, 2013, 1:38 PM
  2. Replies: 9
    Last Post: Oct 16, 2012, 12:05 AM
  3. Using model var in mvc view
    By sinai.doron in forum 1.x Help
    Replies: 1
    Last Post: Nov 09, 2011, 5:19 PM
  4. [CLOSED] EXT.NET and ASP.NET MVC View Model
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 18, 2011, 6:04 PM
  5. Page_ Ajax Load Complete BUG on Ajax Request
    By jeybonnet in forum 1.x Help
    Replies: 8
    Last Post: Jun 22, 2009, 11:19 AM

Tags for this Thread

Posting Permissions