Appending HTML tags to ASP.NET Listbox / Checkboxlist
<p>I'm hoping to add some html on either side of the output of a Listbox control so that it looks something like this: </p>

<pre><code>&lt;div class="scroll_tickbox"&gt;

                            &lt;div class="option first"&gt;&lt;label&gt;&lt;input type="checkbox" value="1" title="Active Retirement Network" /&gt;Active Retirement Network&lt;/label&gt;&lt;/div&gt;&lt;br /&gt;

                            &lt;div class="option"&gt;&lt;label&gt;&lt;input type="checkbox" value="2" title="Boardmatch" /&gt;Boardmatch&lt;/label&gt;&lt;/div&gt;&lt;br /&gt;
                            &lt;div class="option"&gt;&lt;label&gt;&lt;input type="checkbox" value="3" title="Border Counties Childcare Network" /&gt;Border Counties Childcare Network&lt;/label&gt;&lt;/div&gt;&lt;br /&gt;
                            &lt;div class="option"&gt;&lt;label&gt;&lt;input type="checkbox" value="4" title="Carmichael Centre for Voluntary Groups" /&gt;Carmichael Centre for Voluntary Groups&lt;/label&gt;&lt;/div&gt;&lt;br /&gt;


                            &lt;div class="option"&gt;&lt;label&gt;&lt;input type="checkbox" value="26" title="Volunteer Centres Ireland" /&gt;Volunteer Centres Ireland&lt;/label&gt;&lt;/div&gt;&lt;br /&gt;
                        &lt;/div&gt;&lt;!--scroll_tickbox--&gt;
</code></pre>

<p>At the moment I'm getting an output like this </p>

<pre><code>&lt;table id="ctl00_MainContent_CertifiedStandards" class="multipleselect uniform" SelectionMode="Multiple" border="0" style="height:115px;"&gt;
&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_0" type="checkbox" name="ctl00$MainContent$CertifiedStandards$0" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_0"&gt;PQASSO&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;

    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_1" type="checkbox" name="ctl00$MainContent$CertifiedStandards$1" checked="checked" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_1"&gt;Fund raising&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_2" type="checkbox" name="ctl00$MainContent$CertifiedStandards$2" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_2"&gt;Corporate governance&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_3" type="checkbox" name="ctl00$MainContent$CertifiedStandards$3" checked="checked" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_3"&gt;Child protection&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_4" type="checkbox" name="ctl00$MainContent$CertifiedStandards$4" checked="checked" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_4"&gt;Use of images&lt;/label&gt;&lt;/td&gt;

&lt;/tr&gt;&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_5" type="checkbox" name="ctl00$MainContent$CertifiedStandards$5" checked="checked" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_5"&gt;HIV/Aids&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_6" type="checkbox" name="ctl00$MainContent$CertifiedStandards$6" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_6"&gt;NGDO charter&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_7" type="checkbox" name="ctl00$MainContent$CertifiedStandards$7" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_7"&gt;Volunteering and humanitarian aid&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;

    &lt;td&gt;&lt;input id="ctl00_MainContent_CertifiedStandards_8" type="checkbox" name="ctl00$MainContent$CertifiedStandards$8" /&gt;&lt;label for="ctl00_MainContent_CertifiedStandards_8"&gt;Human resources&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p></p>

<p>using code like this </p>

<pre><code>public void BuildListboxes()
{
    //Bind items for Certified Standards listbox
    CertifiedStandards.DataSource = GetCertifiedStandards();
    CertifiedStandards.DataValueField = "ID";
    CertifiedStandards.DataTextField = "name";
    CertifiedStandards.DataBind();
}

public DataTable GetCertifiedStandards()
{
    SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["DBConnectionString"].ConnectionString);
    con.Open();
    SqlCommand com = new SqlCommand("spGetCertifiedStandards", con);
    com.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter ada = new SqlDataAdapter(com);
    DataTable dt = new DataTable();
    ada.Fill(dt);
    return dt;
}
</code></pre>

<p>The reason I want to do this is to add some jQuery control to these checkboxes. </p>

<p>If anybody has any tips on how to achieve this I'd really appreciate this. </p>

<p>Thanks, 
Andrew</p>
