asp.net - Radio button in multiple columns -


i have table in have place radio buttons in multiple columns. these buttons, 1 radio button can checked. how achieve these. have 5 columns viz.a,b,c,d,e , want place radio button each column. //here code .aspx page

 <%@ page title="" language="c#" masterpagefile="~/interviewer   /interviewermasterpage.master" autoeventwireup="true" codefile="appratingform.aspx.cs"    inherits="interviewer_appratingform" %>    <asp:content id="content1" contentplaceholderid="head" runat="server">   <style type="text/css">     .style1     {         width: 100%;     } </style> </asp:content> <asp:content id="content2" contentplaceholderid="contentplaceholder1" runat="server"> <table cellpadding="2" width="100%">     <tr>         <td colspan="2">             &nbsp;</td>     </tr>     <tr>         <td align="center" class="tdtitle" colspan="2">             interview rating form</td>     </tr>     <tr>         <td colspan="2">             &nbsp;</td>     </tr>     <tr>         <td width="25%">             name of applicant</td>         <td>             <asp:label id="namelbl" runat="server" text="label"></asp:label>         </td>     </tr>     <tr>         <td>             post applied for</td>         <td>             &nbsp;</td>     </tr>     <tr>         <td>             department</td>         <td>             &nbsp;</td>     </tr>     <tr>         <td colspan="2">             &nbsp;</td>     </tr>     <tr>         <td align="center" class="tdtitle" colspan="2">             assessment</td>     </tr>     <tr>         <td align="left" colspan="2">             <table border="1" cellpadding="3" cellspacing="0" class="style1">                 <tr>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="5%">                         no</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="25%">                         traits</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="8%">                         a</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="8%">                         b</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="8%">                         c</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="8%">                         d</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="8%">                         e</td>                     <td align="center"                          style="font-family: 'times new roman', times, serif; font-size: large; font-weight: bold"                          width="*">                         comments</td>                 </tr>                 <tr>                     <td colspan="8"                          style="font-family: 'times new roman', times, serif; font-size: medium; font-weight: bold;">                         personal traints</td>                 </tr>                 <tr>                     <td>                         1</td>                     <td>                         personality</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         2</td>                     <td>                         physical fitness</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         3</td>                     <td>                         background</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         4</td>                     <td>                         confidance</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         5</td>                     <td>                         communication skills</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         6</td>                     <td>                         attitude</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td colspan="8"                          style="font-family: 'times new roman', times, serif; font-size: medium; font-weight: bold;">                         job related traits</td>                 </tr>                 <tr>                     <td>                         1</td>                     <td>                         subject knowledge</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         2</td>                     <td>                         related work experience</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         3</td>                     <td>                         integrity</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         4</td>                     <td>                         reliability</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         5</td>                     <td>                         adaptability</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         6</td>                     <td>                         initiative</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         7</td>                     <td>                         team work</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>                 <tr>                     <td>                         8</td>                     <td>                         ethics</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                     <td>                         &nbsp;</td>                 </tr>             </table>         </td>     </tr>     <tr>         <td align="center" class="tdtitle" colspan="2">             &nbsp;</td>     </tr>     <tr>         <td align="center" colspan="2">             &nbsp;</td>     </tr>     <tr>         <td align="center" colspan="2">             &nbsp;</td>     </tr> </table> </asp:content> 

there groupname property of radio button need set each column.

in column a, set radio button's groupname="a"

<asp:radiobutton id="radiobutton1" runat="server" groupname="a" /> 

in column b, set radio button's groupname="b"

<asp:radiobutton id="radiobutton1" runat="server" groupname="b" /> 

this allow user select 1 radio button each column.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -