title: How to convert dataset object to List<string> in vb.net
body: <p>I am returning a result set of rows from database and I want to assign these values on UI for HTML controls.</p>
  
  <p>I am fetching the data into DataSet from DB.</p>
  
  <p>For ex my data looks like following:</p>
  
  <pre><code>ID  EmpId    Question    Comments
  
  1    2        abcdefgh   comments1
  2    6        xyhgjkjh   comments2
  3    6        kjhkjhjk   comments3
  4    6        uyyiuyuui  comments4
  5    3        erteyeyuy  comments5
  6    6        qapooioip  comments6
  </code></pre>
  
  <p>Based on the input(EmpId) I fetch data.For ex EmpId = 6, I want to display the above data on UI using HTML fields like following:</p>
  
  <p>Q1. xyhgjkjh</p>
  
  <p>comments2</p>
  
  <p>Q2. kjhkjhjk</p>
  
  <p>comments3</p>
  
  <p>Q3.uyyiuyuui</p>
  
  <p>comments4</p>
  
  <p>Q4.qapooioip</p>
  
  <p>comments6</p>
  
  <p>I just want to display in a HTML Label by looping through my result set from database.</p>
  
  <p>I am creating properties like following:</p>
  
  <pre><code>Public class MyClass
  {
     public int Id{get;set;}
     public int EmpId{get;set;}
     public String Question{get;set;}
     public String Comments{get;set;}
  }
  </code></pre>
  
  <p>I want to use the above class and set the result set values to the properties and loop through it and assign to HTML controls on UI.</p>
  
  <p>How do i convert the dataset and set it to MyClass obj properties and assign it to the HTML controls in VB.NET.</p>
  
  <p>Do i need to have List for Question property?</p>
  
  <p>Any help? Thanks in advance.</p>