I have something like this:
public ActionResult ImageReplace(int imgid,HttpPostedFileBase file) { string keyword = imgid.ToString(); .
Use this overload, which allows you to distinguish between route values and HTML attribtues:
@using (Html.BeginForm( "ImageReplace", "Member", new { imgid = @Model.Id }, FormMethod.Post, new { enctype = "multipart/form-data" })) { }