title: ActionLink jQuery parameter
body: <p>I've created an ASP.NET MVC 2.0 application.</p>
  
  <p>I have a dropdownbox with a list of “reports”. Next to the dropdown, I have two ActionLink. One that says “<em>Add new report</em>” and the other one say “<em>Edit report</em>”.</p>
  
  <p>The “<em>Add new report</em>” link, is pretty straightforward … it calls a ViewResult in my Controller and returns a <code>new View()</code>. Great! this works no problem!</p>
  
  <p>The “<em>Edit report</em>” link is a bit trickier since I wish to pass the selected ID of the item currently selected inside the dropdown to the ActionLink.</p>
  
  <p>I've found an article that shows me how to AJAXify my ActionLink but I’m doing something wrong…</p>
  
  <p>Here is the ActionLink in the View for the “Edit” link:</p>
  
  <pre><code>&lt;%=Html.ActionLink("Edit report", "EditReport", "Report", null, new { id = "edit" })%&gt;
  </code></pre>
  
  <p>Here is the jQuery click event to handle the “click”</p>
  
  <pre><code>$("#edit").click(function() {
     $.ajax({
       url: '&lt;%=Url.Action("EditReport")%&gt;',
       type: 'POST',
       data: { reportId: $('select[name="ReportId"] option:selected').val() },
       success: function(result) {
            //alert("succes");
       },
       error: function() {
            alert("error");
       }
       });
     return false;
  });
  </code></pre>
  
  <p>Here is the method in the Controller:</p>
  
  <pre><code>public ViewResult EditReport(int reportId)
  {
        return View("EditReport");
  }
  </code></pre>
  
  <p>When placing a breakpoint in the Controller’s method, it gets hit and the parameter “<em>reportId</em>” is correctly passed…but the rest of the code (return View() portion) does not seem to work because inside the jQuery click event, I have a “return false”.</p>
  
  <p>When removing the “return false” inside the click event, the breakpoint no longer gets hit. Thus, I can't go to my “EditReport” view…</p>
  
  <p>What am I missing/not understanding here?</p>
  
  <p>Also … is there a better/nicer/cleaner approach to achieve my task without having to use an AJAX call?</p>