title: With Ajax and MVC 3, how can I pass values from one partial View to another partial View on the same page?
body: <p>I have a project with that has a Tasks View in it. It contains the following code:</p>
  
  <pre><code>@{
      ViewBag.Title = "Tasks";
  }         
  
  &lt;div&gt;
  &lt;div&gt;@Html.Action("TaskList", "Dispatch", new { hidAccId = "3", hidUserId = "0" })&lt;/div&gt;
  &lt;div&gt;@Html.Action("TaskDetail", "Dispatch")&lt;/div&gt;  
  &lt;/div&gt;
  </code></pre>
  
  <p>So, when the Task View is rendered, it actually calls up two other partial views.</p>
  
  <p>The first partial view basically gives me a table of tasks.. very little information. I have it so that when I select a row of data, it highlights and gives me a row id. </p>
  
  <p>My second partial view(positioned below the first on the same page) shows the detailed Task.  </p>
  
  <p>The idea is to take the selected row id from the first partial View and give it to the second partial view's form.  Using Ajax to submit the form and retrieve the newly selected Task detailed information.</p>
  
  <p>How do I accomplish this?  I'd like to be able to do it without destroying the first partial view with a refresh of the second.</p>
  
  <p>Many thanks for the help,</p>