title: dropdownlist selection returning null @ mvc4
body: <p>I am trying to insert to database from view page which has dropdownlist , textbox's .. when i enter something and click on save means i am getting nothing from dropdown selection which is binded .</p>
  
  <pre><code>My code :
  
  @model    IEnumerable&lt;iWiseapp.Models.LObmodel&gt;
  
  @using (@Html.BeginForm("stop", "Home", FormMethod.Post))
  {
  
  
       @Html.DropDownList("Data",ViewBag.Data as SelectList,"select a sdsd",new {id="LOB_ID"})
  
                  @Html.DropDownListFor("sss",new SelectList(Model,"lob_id","lob_name"))
                  ,
                  @Html.DropDownList("LObmodel", new SelectList(ViewBag.data ,"Value","Text"))
  
                 @Html.DropDownListFor(model =&gt; model.lob_name, new SelectList(ViewBag.Titles,"Value","Text"))
  </code></pre>
  
  <p>I tried above all possibilities but nah i am confused nothing working out </p>
  
  <p>ADDED MY CONTROLER CODE </p>
  
  <pre><code>[HttpGet]
          public ActionResult stop()
          {
              ServiceReference1.Service1Client ser_obj = new ServiceReference1.Service1Client();
  
              IEnumerable&lt;LobList&gt; obj = ser_obj.GetData(); //i am Getting list of data through WCF from BUSINESS LAYER WHERE i created entities via EF
  
          List&lt;SelectListItem&gt; ls = new List&lt;SelectListItem&gt;();
  
             foreach (var temp in obj)
          {  
  
              ls.Add(new SelectListItem() { Text = temp.LOB_NAME, Value = temp.LOB_ID.ToString()           });
          }
          //then create a view model on your controller and pass this value to it
          ViewModel vm = new ViewModel();
          vm.DropDown = ls;  // where vm.DropDown = List&lt;SelectListItem&gt;();
  
  
    THE COMMENTED CODE BELOW IS WHAT I AM DOING      
  
  
              //var mode_obj = new List&lt;LObmodel&gt;(); 
   //Created LOBmodel class in model which is excat same of entities in Business class 
  
              //var jobList = new List&lt;SelectListItem&gt;();
              //foreach (var job in obj)
              //{
              //    var item = new SelectListItem();
              //    item.Value = job.LOB_ID.ToString(); //the property you want to display i.e. Title
              //    item.Text = job.LOB_NAME;
              //    jobList.Add(item);
              //}
              //ViewBag.Data = jobList;
             return View(jobList);  or return view (obj)
          }
  </code></pre>
  
  <p>Any expert advice is appreciated </p>
  
  <p>MY FIELDS , IS THESE PERFECT</p>
  
  <pre><code>public class template
      {
          public List&lt;LobList&gt; LOBs { get; set; } //LOBLIST FROM Entities in business layer
  
          public int selectedLobId { get; set; }
  
          public LobList SelectedLob
          {
              get { return LOBs.Single(u=&gt;u.LOB_ID == selectedLobId) ;}
          }
      }
  
  AND 
  
  public class LObmodel
      {
          public int LOB_ID { get; set; }
          public string LOB_NAME { get; set; }
      }
  </code></pre>