title: Pass multiple parameters in Html.BeginForm MVC4 controller action
body: <p>I have something like this:</p>
  
  <pre><code>   public ActionResult ImageReplace(int imgid,HttpPostedFileBase file)
      {
          string keyword = imgid.ToString();
          .......
      }
  </code></pre>
  
  <p>and in my .cshtml:</p>
  
  <pre><code>   @model Models.MemberData
     @using (Html.BeginForm("ImageReplace", "Member", FormMethod.Post,
              new { imgid = @Model.Id, enctype = "multipart/form-data" }))
          { 
       &lt;input type="file" name="file" id="file" value="Choose Photo"  /&gt; 
       &lt;input type="submit" name="submit" value="Submit" /&gt;
      }
  </code></pre>
  
  <p>here the value of imgid is not passing to controller action. show an error,The parameters dictionary contains a null entry for parameter 'imgid' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult ImageReplace</p>