How to fetch the record from database and load it to labels?
<p>My labels: The labels are mentioned here followed by the code.</p>

<pre><code>      &lt;div id="valueIntroduction" class="labelarea" runat="server"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueBacklog notice" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueReasonably complete" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueStatement of purpose" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueResume" class="labelarea"&gt; &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueTranscripts" class="labelarea"&gt;  &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueGRE Official test scores" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueTOEFL or IELTS Official test scores" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueLetters of Recommendation3" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueLetters of Recommendation2" class="labelarea"&gt;   &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueLetters of Recommendation1" class="labelarea"&gt; &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueSignature" class="labelarea"&gt;  &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
       &lt;div id="valueSubject" class="labelarea"&gt;  &lt;/div&gt;
       &lt;div  class="line"&gt;&lt;/div&gt;
</code></pre>

<p>This code is assigning the last record to the first label. How do I assign the correct record to correct label?</p>

<pre><code>     if (Department.Items[0].Selected)
                {
                        firstPanel.Visible = true;
                        myLegend.InnerText = "Informatics";
                        NewComm.CommandText = "getTextHeaderINFO";

                        NewComm.CommandType = CommandType.StoredProcedure;
                        NewComm.Connection = NewConn;
                        NewComm.CommandTimeout = 3000;
                        SqlDataReader results = NewComm.ExecuteReader();

                        while (results.Read())
                        {
                             Response.Write(results["TEXT_CONTENT"].ToString());
                             valueIntroduction.InnerHtml = results["TEXT_CONTENT"].ToString();
                        }
                 }
</code></pre>
