title: How to get hidden field values and assign in to the data table
body: <p>I am implementing this JQuery UI multiselect from <a href="http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/" rel="nofollow">http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/</a></p>
  
  <p>I have managed to get it to use in my asp.net page, but while i am submitting the button, the selected text shows only the last element checked.So i want to get all selected values in the hidden field.But how to assign the hidden field value to the data table?</p>
  
  <p>Here i am giving my datatable.Previuosly i am trying to do the selected items to store in data table.</p>
  
  <pre><code>DataTable dtAssigners = new DataTable();
  dtAssigners.Columns.Add("GIMID", typeof(int));
  dtAssigners.Columns.Add("UserId", typeof(int));
  dtAssigners.Columns.Add("MODE", typeof(char));
  dtAssigners.Columns.Add("CreatedBy", typeof(int));
  DataTable dt = null;
  
  foreach (System.Web.UI.WebControls.ListItem list in ddlAssignedTo.Items)
  {
      if (list.Selected)
      {
          DataRow drUsers = dtAssigners.NewRow();
          drUsers["GIMID"] = GIMID;
          drUsers["MODE"] = 'I';
          drUsers["UserId"] = Convert.ToInt32(list.Value);
          drUsers["CreatedBy"] = CurUsr.UserId;
          dtAssigners.Rows.Add(drUsers);
      }
  }
  </code></pre>
  
  <p>But now how to assign the <code>hidden field value</code> in data table ?Can anyone help me?</p>