title: Assign Attribute to @Html.DropdownList
body: <p>I want to assign some ID attribute name to my Dropdown list which is using data from the ViewBag as,</p>
  
  <pre><code>ViewBag.Group = new SelectList(group, "GroupId", "Name");
  </code></pre>
  
  <p>and in the View side I have used Razor syntax for showing the Dropdown as,</p>
  
  <pre><code>@Html.DropDownList("Group", "New", new { id="testID" } )
  </code></pre>
  
  <p>But I am getting the error on this line. Can I just assign ID of This Razor syntax?
  I know that the ID is generated with the Name "Playlist" But I am having 2 different dropdowns using same ViewBag. Because of that I have to assign different "ID" attribute value for them. How can it be done?</p>