Hi,
If anybody having solution for the problem help with it immediately. I am creating a array (matrix) of checkboxes from database. I am having different values in database like, Hallnumber, HallRow, HallColumn and I am taking the Row and Column Values by checking the selected Hall number.
If the hall is existing, the code should create the array of the checkboxes. When I tried with, it created the checkboxes but what the problem is it is not taking the row-by-column values when I am retrieving them, instead it is returning only the textpart of the checkboxes.
Then I tried to assign the value to the checkbox and it is not taking the values too. As the problem occured I tried with checkboxlist but the problem is the checkboxlist is taking only onedimentional array.
Please help me if anybody knows how to assgin the values to checkboxes dynamically. I want to assign the i, j(row and column values) combinedly to that checkbox.
My code seems like this
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<%for i=1 to session("sr")%>
<tr>
<%for j=1 to session("sc")%>
<td>
<%="<asp:checkbox runat='server' id='chk"%><%=i%><%=J%><%="' text='seat"%><%=i%><%=j%><%="'></asp:checkbox>"%></td>
<%next%>
</tr>
<%next%>
</tbody>
</table>
When I am trying like this it is not writing any values.
Thanks and Regards,
Senthil Kumar M.
[email protected]
http://www.leanlearn.tk