title: Controller not returning json data to the view in asp.net MVC Ajax
body: <p>I am facing issue while returning Json values to View. I don't know why it is happening may be issue with JQuery. Below is my code for reference. Its not executing the success parameter of AJAX. </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var $edituserform = $("#edituserform");
  
  $(document).ready(function () {
      $('#userList').DataTable();
  });
  
  function updateuser(id)
  {
      var myUrl = '@Url.Action("EditUser", "Admin")';
      //var myUrl = '/Admin/EditUser?Id=' + id;
      alert(id)
      $.ajax({
          url: myUrl,
          type: 'GET',
          data: {Id:id},
          dataType: 'json',
          sucess: function (result) {
              alert('inside success')
              //$edituserform.html(result.partialView);
              $edituserform.load(result);
          }
      })
  }
  </code></pre>
  
  <p></p>
  
  <p>---- Controller ----</p>
  
  <pre><code>        public ActionResult EditUser(int Id)
      {
          try
          {
              var objUser = objUserLogic.GetUserById(Id);
  
              //return Json(new { partialView = MvcHelper.RenderPartialView(this, "_EditUser", objUser, null) }, JsonRequestBehavior.AllowGet);   //tried this commented code first
              return PartialView("_EditUser", objUser);
          }
          catch (Exception Ex)
          {
                              return View("ViewUsers");
          }
  
      }
  </code></pre>