title: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'course'
body: <p>i am getting a problem while populating data inside the dropdown...
  I guess since i am using a partial view that is why it is creating problem.
  Here's my code:</p>
  
  <pre><code>public ActionResult Register()
  {
      var course = from Course c in Enum.GetValues(typeof(Course))
                       select new { ID = c, Name = c.ToString() };
       ViewData["course"] = new SelectList(course, "ID", "Name");
       return view();
  }
  
   public enum Course
  {
      [Display(Name = "Basic Level", ShortName = "Basic")]
      Basic = 1,
  
      [Display(Name = "Intermidiate Level")]
      Intermidiate = 2,
  
      [Display(Name = "Advance Level")]
      Advance = 3
  }
  </code></pre>
  
  <p>This is my Main view:</p>
  
  <pre><code>&lt;table style="margin-top: 10px"&gt;
  &lt;tr&gt;
      &lt;td valign="top"&gt;
          @{Html.RenderPartial("LogOnPartial");}
      &lt;/td&gt;
      &lt;td width="20px"&gt;
      &lt;/td&gt;
      &lt;td align="left"&gt;
          @{Html.RenderPartial("CreatePartial");}
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have written this in my partial view(CreatePartial):</p>
  
  <pre><code>&lt;td&gt;
         @Html.DropDownList("course");
  &lt;/td&gt;
  </code></pre>
  
  <p>Please help me</p>