title: get the list of a newly(by user) populated listbox
body: <p><strong>asp .net mvc 4.0, vs10 , razorview</strong></p>
  
  <p>This is <strong>my listbox :</strong> </p>
  
  <pre><code> &lt;div class="editor-list-field"&gt;
        &lt;select name="lbToCreateTable" class="clsToCreateTable" id="idToCreateTable" style="width:150px" size="8" multiple="multiple" &gt;
               @if(Model.ColumnsToCreateTable != null)
               {
                    &lt;option&gt;@Model.ColumnsToCreateTable;&lt;/option&gt;
               }
         &lt;/select&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p><strong>my Controller :</strong> </p>
  
  <pre><code> public ActionResult About(AboutModel model, string btnTestMail, string btnSendMail, string lbToCreateTable)
      {
          try
          {
              if (btnTestMail != null)
              {
                  List&lt;string&gt; lstTableCreateCols = new List&lt;string&gt;();
                  try
                  {
                      if (Request.Form["lbToCreateTable"].ToString().Length &gt; 0)
                      { }
  
                      HtmlString hs = new HtmlString(model.Content);
                      if (model.TableCreate)
                      {
                          if (hs.ToString().Length &gt; 0 &amp;&amp; model.CompanyName != "" &amp;&amp; model.MailSubject != "")
                          {
                              CM.CreateMailBody(model.CompanyName, model.MailSubject, hs);
                          }
                      }
  
                      else
                      {
                          if (hs.ToString().Length &gt; 0 &amp;&amp; model.CompanyName != "" &amp;&amp; model.MailSubject != "" &amp;&amp; model.ColumnsToCreateTable != null)
                          {
                              List&lt;string&gt; lstColumnsToCreateTable = new List&lt;string&gt;();
                              foreach (SelectListItem str in model.ColumnsToCreateTable)
                              {
                                  lstColumnsToCreateTable.Add(str.Selected.ToString());
                              }
                              CM.CreateMailbodyWithTable(model.CompanyName, model.MailSubject, hs, lstColumnsToCreateTable);
                          }
                      }
                  }
  
                  catch { }
              }
              else if (btnSendMail != null)
              { 
  
              }
          }
          catch { }
          try
          {
              if (btnTestMail == null &amp;&amp; btnSendMail == null)
              {
  
                  if (Session["CompanyName"].ToString().Length &gt; 0)
                  {
                      RedirectFromHomeToAbout(model);
                  }
              }
  
          }
          catch { }
          return View(model);
      }
  </code></pre>
  
  <p><strong>my model:</strong> </p>
  
  <pre><code>[Required]
      [DataType(DataType.Text)]
      public string CompanyName { get; set; }
  
      [Required]
      [DataType(DataType.Text)]
      public string MailSubject { get; set; }
  
      public List&lt;string&gt; TableColumn { get; set; }
  
      public bool IsChecked { get; set; }
  
      public List&lt;string&gt; ColumnsToCreateTable { get; set; }
  
      public bool TableCreate { get; set; }
  
      [Display]
      [DataType(DataType.Text)]
      public string Message { get; set; }
  
      [Required]
      [DataType(DataType.Html)] 
      [AllowHtml]
      public string Content { get; set; }
  
      [DataType(DataType.EmailAddress)]
      public string EmailAddress { get; set; }
  </code></pre>
  
  <p>in my model why i am getting Model.ColumnsToCreateTable = null; </p>
  
  <p><strong>Bussiness :</strong></p>
  
  <p>when my view loads, this Listbox will be blank. In this view, there is another Listbox, which is populated correctly. I will populate the ListBoxToCreateTable(which was blank at first). when i submit the form, along with all other data, this list(of newly populated listbox) will sent to my contrller. And i have to do a lot of things with this.</p>
  
  <p><strong>Question :</strong></p>
  
  <ol>
  <li>How could i solve this issue?</li>
  <li>is this the right way to do this?</li>
  <li>any other suggestion?</li>
  </ol>