title: load another view on ajax post
body: <p>I have a view <strong>UserInformation</strong> where I am filling few user related information and posting those information to another View "AnotherView" using ajax post.</p>
  
  <p>Now I want to take these inputs in action method "AnotherView" and load the view "AnotherView" with some datamodel.</p>
  
  <p>When I am doing Ajax Post from view <strong>UserInformation</strong> to action method <strong>"AnotherView"</strong>,It is going to action method <strong>"AnotherView"</strong>,but it is still showing view <strong>UserInformation</strong></p>
  
  <p>Ajax call from view <strong>UserInformation</strong></p>
  
  <pre><code>$.ajax({
      url: '/somecontroller/AnotherView/',
      data: {
          name: $.trim($('#mgr').val()),
          id: $('#id').val(),
          email: $.trim($('#hdnMgrmail').val())
      },
      cache: false,
      type: "POST",
      dataType: "html",
      success: function (data,
          textStatus, XMLHttpRequest) {
          alert('ok');
      }
  });
  
  
  [HttpPost]
  public ActionResult AnotherView(few parametrs that is coming here)
  {
        //create model using input params
        return View(with some model);
  }
  </code></pre>