How to get html controls form html table in server side,asp.net
<p>Can any body tell me how can i get html controls form html table in server side in asp.net?
 My code goes like this.</p>

<pre><code> &lt;div&gt;
    &lt;table runat='server' id="CheckBoxList1"&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_1' type='checkbox' name='CheckBoxList1$1'
                    value='1' /&gt;&lt;label for='CheckBoxList1_1'&gt;1&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_22' type='checkbox' name='CheckBoxList1$22'
                    value='1' /&gt;&lt;label for='CheckBoxList1_22'&gt;22&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_43' type='checkbox' name='CheckBoxList1$43'
                    value='1' /&gt;&lt;label for='CheckBoxList1_43'&gt;43&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_2' type='checkbox' name='CheckBoxList1$2'
                    value='1' /&gt;&lt;label for='CheckBoxList1_2'&gt;2&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_23' type='checkbox' name='CheckBoxList1$23'
                    value='1' /&gt;&lt;label for='CheckBoxList1_23'&gt;23&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_44' type='checkbox' name='CheckBoxList1$44'
                    value='1' /&gt;&lt;label for='CheckBoxList1_44'&gt;44&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_3' type='checkbox' name='CheckBoxList1$3'
                    value='1' /&gt;&lt;label for='CheckBoxList1_3'&gt;3&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_24' type='checkbox' name='CheckBoxList1$24'
                    value='1' /&gt;&lt;label for='CheckBoxList1_24'&gt;24&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_45' type='checkbox' name='CheckBoxList1$45'
                    value='1' /&gt;&lt;label for='CheckBoxList1_45'&gt;45&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_4' type='checkbox' name='CheckBoxList1$4'
                    value='1' /&gt;&lt;label for='CheckBoxList1_4'&gt;4&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_25' type='checkbox' name='CheckBoxList1$25'
                    value='1' /&gt;&lt;label for='CheckBoxList1_25'&gt;25&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_46' type='checkbox' name='CheckBoxList1$46'
                    value='1' /&gt;&lt;label for='CheckBoxList1_46'&gt;46&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_5' type='checkbox' name='CheckBoxList1$5'
                    value='1' /&gt;&lt;label for='CheckBoxList1_5'&gt;5&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_26' type='checkbox' name='CheckBoxList1$26'
                    value='1' /&gt;&lt;label for='CheckBoxList1_26'&gt;26&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_47' type='checkbox' name='CheckBoxList1$47'
                    value='1' /&gt;&lt;label for='CheckBoxList1_47'&gt;47&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_6' type='checkbox' name='CheckBoxList1$6'
                    value='1' /&gt;&lt;label for='CheckBoxList1_6'&gt;6&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_27' type='checkbox' name='CheckBoxList1$27'
                    value='1' /&gt;&lt;label for='CheckBoxList1_27'&gt;27&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_48' type='checkbox' name='CheckBoxList1$48'
                    value='1' /&gt;&lt;label for='CheckBoxList1_48'&gt;48&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_7' type='checkbox' name='CheckBoxList1$7'
                    value='1' /&gt;&lt;label for='CheckBoxList1_7'&gt;7&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_28' type='checkbox' name='CheckBoxList1$28'
                    value='1' /&gt;&lt;label for='CheckBoxList1_28'&gt;28&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_49' type='checkbox' name='CheckBoxList1$49'
                    value='1' /&gt;&lt;label for='CheckBoxList1_49'&gt;49&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_8' type='checkbox' name='CheckBoxList1$8'
                    value='1' /&gt;&lt;label for='CheckBoxList1_8'&gt;8&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_29' type='checkbox' name='CheckBoxList1$29'
                    value='1' /&gt;&lt;label for='CheckBoxList1_29'&gt;29&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_50' type='checkbox' name='CheckBoxList1$50'
                    value='1' /&gt;&lt;label for='CheckBoxList1_50'&gt;50&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_9' type='checkbox' name='CheckBoxList1$9'
                    value='1' /&gt;&lt;label for='CheckBoxList1_9'&gt;9&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_30' type='checkbox' name='CheckBoxList1$30'
                    value='1' /&gt;&lt;label for='CheckBoxList1_30'&gt;30&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_51' type='checkbox' name='CheckBoxList1$51'
                    value='1' /&gt;&lt;label for='CheckBoxList1_51'&gt;51&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_10' type='checkbox' name='CheckBoxList1$10'
                    value='1' /&gt;&lt;label for='CheckBoxList1_10'&gt;10&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_31' type='checkbox' name='CheckBoxList1$31'
                    value='1' /&gt;&lt;label for='CheckBoxList1_31'&gt;31&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_52' type='checkbox' name='CheckBoxList1$52'
                    value='1' /&gt;&lt;label for='CheckBoxList1_52'&gt;52&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_11' type='checkbox' name='CheckBoxList1$11'
                    value='1' /&gt;&lt;label for='CheckBoxList1_11'&gt;11&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_32' type='checkbox' name='CheckBoxList1$32'
                    value='1' /&gt;&lt;label for='CheckBoxList1_32'&gt;32&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_53' type='checkbox' name='CheckBoxList1$53'
                    value='1' /&gt;&lt;label for='CheckBoxList1_53'&gt;53&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_12' type='checkbox' name='CheckBoxList1$12'
                    value='1' /&gt;&lt;label for='CheckBoxList1_12'&gt;12&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_33' type='checkbox' name='CheckBoxList1$33'
                    value='1' /&gt;&lt;label for='CheckBoxList1_33'&gt;33&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_54' type='checkbox' name='CheckBoxList1$54'
                    value='1' /&gt;&lt;label for='CheckBoxList1_54'&gt;54&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_13' type='checkbox' name='CheckBoxList1$13'
                    value='1' /&gt;&lt;label for='CheckBoxList1_13'&gt;13&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_34' type='checkbox' name='CheckBoxList1$34'
                    value='1' /&gt;&lt;label for='CheckBoxList1_34'&gt;34&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_55' type='checkbox' name='CheckBoxList1$55'
                    value='1' /&gt;&lt;label for='CheckBoxList1_55'&gt;55&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_14' type='checkbox' name='CheckBoxList1$14'
                    value='1' /&gt;&lt;label for='CheckBoxList1_14'&gt;14&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_35' type='checkbox' name='CheckBoxList1$35'
                    value='1' /&gt;&lt;label for='CheckBoxList1_35'&gt;35&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_56' type='checkbox' name='CheckBoxList1$56'
                    value='1' /&gt;&lt;label for='CheckBoxList1_56'&gt;56&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_15' type='checkbox' name='CheckBoxList1$15'
                    value='1' /&gt;&lt;label for='CheckBoxList1_15'&gt;15&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_36' type='checkbox' name='CheckBoxList1$36'
                    value='1' /&gt;&lt;label for='CheckBoxList1_36'&gt;36&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_57' type='checkbox' name='CheckBoxList1$57'
                    value='1' /&gt;&lt;label for='CheckBoxList1_57'&gt;57&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_16' type='checkbox' name='CheckBoxList1$16'
                    value='1' /&gt;&lt;label for='CheckBoxList1_16'&gt;16&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_37' type='checkbox' name='CheckBoxList1$37'
                    value='1' /&gt;&lt;label for='CheckBoxList1_37'&gt;37&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_58' type='checkbox' name='CheckBoxList1$58'
                    value='1' /&gt;&lt;label for='CheckBoxList1_58'&gt;58&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_17' type='checkbox' name='CheckBoxList1$17'
                    value='1' /&gt;&lt;label for='CheckBoxList1_17'&gt;17&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_38' type='checkbox' name='CheckBoxList1$38'
                    value='1' /&gt;&lt;label for='CheckBoxList1_38'&gt;38&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_59' type='checkbox' name='CheckBoxList1$59'
                    value='1' /&gt;&lt;label for='CheckBoxList1_59'&gt;59&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_18' type='checkbox' name='CheckBoxList1$18'
                    value='1' /&gt;&lt;label for='CheckBoxList1_18'&gt;18&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_39' type='checkbox' name='CheckBoxList1$39'
                    value='1' /&gt;&lt;label for='CheckBoxList1_39'&gt;39&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_60' type='checkbox' name='CheckBoxList1$60'
                    value='1' /&gt;&lt;label for='CheckBoxList1_60'&gt;60&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_19' type='checkbox' name='CheckBoxList1$19'
                    value='1' /&gt;&lt;label for='CheckBoxList1_19'&gt;19&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_40' type='checkbox' name='CheckBoxList1$40'
                    value='1' /&gt;&lt;label for='CheckBoxList1_40'&gt;40&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_61' type='checkbox' name='CheckBoxList1$61'
                    value='1' /&gt;&lt;label for='CheckBoxList1_61'&gt;61&lt;/label&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_20' type='checkbox' name='CheckBoxList1$20'
                    value='1' /&gt;&lt;label for='CheckBoxList1_20'&gt;20&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_41' type='checkbox' name='CheckBoxList1$41'
                    value='1' /&gt;&lt;label for='CheckBoxList1_41'&gt;41&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_21' type='checkbox' name='CheckBoxList1$21'
                    value='1' /&gt;&lt;label for='CheckBoxList1_21'&gt;21&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
                &lt;input runat='server' id='CheckBoxList1_42' type='checkbox' name='CheckBoxList1$42'
                    value='1' /&gt;&lt;label for='CheckBoxList1_42'&gt;42&lt;/label&gt;
            &lt;/td&gt;
            &lt;td&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/div&gt;
</code></pre>

<p>Thanks
Mohak</p>
