Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
                            yes                     No
Offer & Acceptance Letter    [rbtnOfferYes]  [rbtnOfferNo]  
      Not 
[rbtnOfferNot]


i used the radiobuttons in this way like this there are so many names and i need to check one among those.please help me in coding.i am providing design page og one radiobutton and the remaining are same as that.

XML
<tr>
                       <td align="center">
                       <asp:Label ID="Label2" runat="server" CssClass="titles"
                                   Text="Welcome Kit" ></asp:Label></td>
                       <td align="center" >
                        <asp:Label ID="lblYes" runat="server" Text="Yes" CssClass="title_bold"></asp:Label>
                       </td>
                       <td align="center">
                           <asp:Label ID="lblNo" runat="server" Text="No" CssClass="title_bold" ></asp:Label>
                       </td>
                       <td align="center">
                           <asp:Label ID="lblNot" runat="server" Text="Not Applicable" CssClass="title_bold" ></asp:Label>
                       </td>
                   </tr>
                           <caption>
                               &nbsp;
                                   <tr>
                                   <td class="titles2">
                                       <asp:Label ID="lblOffer" runat="server" Text=" Offer &amp; Acceptance Letter "></asp:Label></td>
                                       <%--<asp:Label ID="Label3" Text="*" runat="server" ForeColor="Red"></asp:Label>--%>

                                   <td align="center">
                                       &nbsp;
                                       <asp:RadioButton ID="rbtnOfferYes" runat="server" />
                                   </td>
                                   <td align="center">
                                       &nbsp;
                                       <asp:RadioButton ID="rbtnOfferNo" runat="server" />
                                   </td>
                                   <td align="center">
                                       &nbsp;
                                       <asp:RadioButton ID="rbtnOfferNot" runat="server" />
                                   </td>
                               </tr>



thanks in advance.
Posted
Updated 14-Mar-11 21:32pm
v2
Comments
Sunasara Imdadhusen 15-Mar-11 3:26am    
What is your problem?
mandarapu 15-Mar-11 3:31am    
i want the code related to that.if suppose we take take 2 radiobuttons code is (radio1.checked==true){ condition=true}else condition=false}.in this way with 3 radiobuttins how we will write the code.

1 solution

You need to create a GroupRadioButton as shown here[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Mar-11 3:40am    
Once again, this is the answer, my 5.
--SA
Abhinav S 15-Mar-11 3:44am    
Thanks for the 5.
Sergey Alexandrovich Kryukov 15-Mar-11 4:02am    
Did you check Smirnov's source code? If it does not give you the idea, who knows what help you're expecting?
Please, don't use textspeak ("plz" and the like). Please, full punctuation, capitalization and spelling, always. In this site (and elsewhere) everything else is considered impolite...
--SA
Sergey Alexandrovich Kryukov 15-Mar-11 4:15am    
The beginner is the one who begins, not the one who complains. Get you hands dirty and try to do the work. You already got all you need. Ask another Question when you face a problem you're able to describe. So far, your are not asking anything certain (after you got the Answer). Too bad you ignoring my request to write you text properly. Do you think I have more time for this? No, I'm just not as rude as you are.
--SA
mandarapu 15-Mar-11 4:22am    
thank u

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900