Code:
<table cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="width: 156px"> <asp:CheckBox ID="News" runat="server" Text="News"/> <br /> <br /> </td> <td style="width: 162px"> <asp:CheckBox ID="HnF" runat="server" Text="Home & Family"/> <br /> <br /> </td> <td style="width: 155px"> <asp:CheckBox ID="HnN" runat="server" Text="Health & Nutrition"/> <br /> <br /> </td> <td> <asp:CheckBox ID="Auto" runat="server" Text="Automobiles"/> <br /> <br /> </td> </tr> <tr> <td style="width: 156px"> <asp:CheckBox ID="Education" runat="server" Text="Education"/> <br /> <br /> </td> <td style="width: 162px"> <asp:CheckBox ID="Loand" runat="server" Text="Loans"/> <br /> <br /> </td> <td style="width: 155px"> <asp:CheckBox ID="Travel" runat="server" Text="Travel"/> <br /> <br /> </td> <td> <asp:CheckBox ID="Computers" runat="server" Text="Computers"/> <br /> <br /> </td> </tr> <tr> <td style="width: 156px"> <asp:CheckBox ID="Shopping" runat="server" Text="Shopping"/> <br /> <br /> </td> <td style="width: 162px"> <asp:CheckBox ID="Insurance" runat="server" Text="Insurance"/> <br /> <br /> </td> <td style="width: 155px"> <asp:CheckBox ID="Beauty" runat="server" Text="Beauty "/> <br /> <br /> </td> <td> <asp:CheckBox ID="Fashion" runat="server" Text="Fashion"/> <br /> <br /> </td> </tr> <tr> <td style="width: 156px"> <asp:CheckBox ID="Sports" runat="server" Text="Sports "/> <br /> <br /> </td> <td style="width: 162px"> <asp:CheckBox ID="OnlineGames" runat="server" Text="Online Gaming"/> <br /> <br /> </td> <td style="width: 155px"> <asp:CheckBox ID="SpecialOffers" runat="server" Text="Special Offers"/> <br /> <br /> </td> <td> <asp:CheckBox ID="Family" runat="server" Text="Family"/> <br /> <br /> </td> </tr> </table>
i want the checked values to insert in database..If i select Family, News and Fashion... The inserted data should be in Three rows of answer field..
I know it is possible only through arrays..but.... not having any idea about this..
Please...Help.. ..
Comment