title: Put ViewBag Controller Value on View
body: <p>I'm trying to pass a <code>ViewBag</code> data from my controller to my View, if i put the <code>Viewbag</code> on a <code>Html.DropDownList</code> I get the correct values but if I use   <code>&lt;input value="@ViewBag.Group" /&gt;</code> I only get <code>"System.Web.Mvc.SelectList"</code>
  Why am I not getting the value of my <code>viewbag</code>?</p>
  
  <p>This is my controller ViewBag:</p>
  
  <pre><code>    public ActionResult Index(string Selected)
      {
         List&lt;string&gt; listadesumas = new List&lt;string&gt;();
          var db = new PosContext();
  
        foreach (var item in db.Pos)
          {
              listadesumas.Add(item.ToString());
  
          }
          var grupos = new SelectList(listadesumas.ToList());
  
          ViewBag.Group = grupos;
   return View("~/Views/HomePos/Index.cshtml",db.Pos.ToList());
      }
  </code></pre>
  
  <p>and my Input From View:</p>
  
  <pre><code>  &lt;input value="@ViewBag.Group" /&gt;
  </code></pre>
  
  <p>what am i doing wrong?</p>