title: Change Name of Html.DropDownListFor - MVC Razor
body: <p>I am creating a form with a drop down for a property named "Event". Unfortunately this is a reserved word so it won't work as usual:</p>
  
  <pre><code>@Html.DropDownListFor(x =&gt; x.Event, new SelectList(ViewData["Events"] as IEnumerable&lt;JFS.Data.Model.Event&gt;, "Id", "Name"))
  </code></pre>
  
  <p>In the controller I can't take this value separately as it is a reserved word, so if I do this:</p>
  
  <pre><code>public ActionResult Create(int event)
  {
  etc etc
  }
  </code></pre>
  
  <p>It throws an error.</p>
  
  <p>What I would ideally like to do is change the name of the dropdown list, something like this:</p>
  
  <pre><code>@Html.DropDownListFor(x =&gt; x.Event as eventId, new SelectList(ViewData["Events"] as IEnumerable&lt;JFS.Data.Model.Event&gt;, "Id", "Name"))
  </code></pre>
  
  <p>But that doesn't work. Anyone know of the correct way to change the name? :-)</p>