0

I am using MVC Ajax in my ASP.net MVC 2.0 web application.

I am using Ajax.BeginForm() and passing an ajax request to update values in database.

The Controller Action method for the ajax request is fired and i am returning multiple data values in the form of json result.

After the Sucessful Ajax call, i am hitting the Sucess call back function.

here , i want to update two fields with the new json data recieved. But, i was able to update only one..

The other field is not updating please help..

Sample Code:

 function Success(e) {
        try {
            var json = e.get_response().get_object();
            $('#AjaxChangedOn').text(json.data);
            $('#AjaxChangedBy').text(json.data1);
            alert(json.data);

            alert(" details updated sucessfully");
        }
        catch (e) {
            alert("Sorry, an error occured while processing your request");
        }
    }
    function Failed() {
        alert("Sorry, an error occured while processing your request");
    }
Sai Avinash
  • 4,523
  • 16
  • 50
  • 93

0 Answers0