title: pass model from view to controller with html.actionlink
body: <p>I am trying to get the model data from a strongly typed view to a controller.
  Using the submit button is ok, I can get the data. Now I want to achieve the same with html.actionlink.
  This is what I have:
  <strong>View:</strong></p>
  
  <pre><code>@model WordAutomation.Models.Document    
      @{
          ViewBag.Title = "Document";
      }
        &lt;script type="text/javascript"&gt;
            $(function () {
                $("#dialog").dialog();
            });
          &lt;/script&gt;
  
      &lt;h2&gt;Document&lt;/h2&gt;
  
      @using (Html.BeginForm()) {
          @Html.ValidationSummary(true)
  
          &lt;fieldset&gt;
              &lt;legend&gt;Document&lt;/legend&gt;
  
              &lt;div class="editor-label"&gt;
                  @Html.LabelFor(model =&gt; model.ClientTitle)
              &lt;/div&gt;
              &lt;div class="editor-field"&gt;
                  @Html.EditorFor(model =&gt; model.ClientTitle)
                  @Html.ValidationMessageFor(model =&gt; model.ClientTitle)
              &lt;/div&gt;
  
              &lt;div class="editor-label"&gt;
                  @Html.LabelFor(model =&gt; model.ClientFullName)
              &lt;/div&gt;
              &lt;div class="editor-field"&gt;
                  @Html.EditorFor(model =&gt; model.ClientFullName)
                  @Html.ValidationMessageFor(model =&gt; model.ClientFullName)
              &lt;/div&gt;
  
              &lt;div class="editor-label"&gt;
                  @Html.LabelFor(model =&gt; model.ClientCustomSSN)
              &lt;/div&gt;
              &lt;div class="editor-field"&gt;
                  @Html.EditorFor(model =&gt; model.ClientCustomSSN)
                  @Html.ValidationMessageFor(model =&gt; model.ClientCustomSSN)
              &lt;/div&gt;
  
              &lt;p&gt;
                  &lt;input type="submit" value="Create" /&gt;            
              &lt;/p&gt;
          &lt;/fieldset&gt;
      }
  
      &lt;div&gt;
          @Html.ActionLink("Preview", "PreviewWordDocument", "Home", null, new { id = "previewLink" })    
  
      &lt;/div&gt;
  
      &lt;div id="dialogcontainer"&gt;
          &lt;div id="dialogcontent"&gt;&lt;input type="submit" value="Create" /&gt;        &lt;/div&gt;
      &lt;/div&gt;
  
      @section Scripts {
  
          &lt;script type="text/javascript"&gt;
  
                  $(document).ready(function() {
  
                      $("#dialogcontainer").dialog({
                          width: 400,
                          autoOpen:false,
                          resizable: false,
                          title: 'Test dialog',
                          open: function (event, ui) {
                              $("#dialogcontent").load("@Url.Action("PreviewWordDocument", "Home")");
                          },
                          buttons: {
                              "Close": function () {
                                  $(this).dialog("close");
                              }
                          }
                      });
  
                      $("#previewLink").click(function(e) {
                          e.preventDefault();
                          $("#dialogcontainer").dialog('open');
                      });
  
                  });
  
              &lt;/script&gt;
      }
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public ActionResult Document()
          {      
              return View();
          }
  
          [HttpPost]
          public ActionResult Document(WordAutomation.Models.Document model)
          {
              Models.Utility.EditWord word = new Models.Utility.EditWord();
              word.EditWordDoc(model);
              return View("Display", model);
          }
  
          public ActionResult PreviewWordDocument()
          {           
              var image = Url.Content("~/Content/preview.jpeg");
  
              return PartialView((object)image);
          } 
  </code></pre>
  
  <p>The document actionresult can get the model, but I want to know how can I get the values from the actionlink which will trigger the PreviewWordDocument action.</p>
  
  <p>Thanks in advance, Laziale</p>