Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have multiple radio button near about 60 radio button i have like this

I have a problem at run time user select what ever radio button how can I calculate
which which radio button is selected by user and the selected radio button is show in other page in tree format like (rabio button1>rabio button2>) in this format I want to show please help me



XML
<div>

        <table class="style1" bgcolor="#669999">
            <tr bgcolor="#003399">
                <td class="style11" headers="57px" width="316px" align="center">
                    <asp:Button ID="Button1" runat="server" Text="Flate&amp;Houses"
                        onclick="Button1_Click" />
                </td>
                <td class="style7" headers="57px" width="316px" align="center">
                    <asp:Button ID="Button2" runat="server" Text="jobes" onclick="Button2_Click" />
                </td>
                <td class="style10" headers="57px" width="316px" align="center">
                    <asp:Button ID="Button3" runat="server" Text="community"
                        onclick="Button3_Click" />
                </td>
                <td class="style8" headers="57px" width="316px" align="center">
                    <asp:Button ID="Button4" runat="server" Text="Other" onclick="Button4_Click" />
                </td>
            </tr>
            <tr>
                <td class="style22" headers="57px" width="316px">
                                            <asp:Panel ID="Panel2" runat="server" Height="116px">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td class="style20">
                                                <asp:RadioButton ID="RadioButton1" runat="server" Text="For Rent"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton1_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                <asp:RadioButton ID="RadioButton2" runat="server" Text="Property For Sale"
                                                    oncheckedchanged="RadioButton2_CheckedChanged" />
                                            </td>
                                            <td>
                                                <asp:Panel ID="ToShare" runat="server">
                                                    <table style="width:100%; height: 58px;">
                                                        <tr>
                                                            <td>
                                                                <asp:RadioButton ID="RadioButton18" runat="server" AutoPostBack="True"
                                                                    oncheckedchanged="RadioButton18_CheckedChanged" Text="Offer" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:RadioButton ID="RadioButton19" runat="server" AutoPostBack="True"
                                                                    oncheckedchanged="RadioButton19_CheckedChanged" Text="Wanted" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style20">
                                                <asp:RadioButton ID="RadioButton3" runat="server" Text="To Share"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton3_CheckedChanged" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style23" headers="57px" width="316px">

                                            <asp:Panel ID="Panel3" runat="server"
                        BorderColor="#669999">
                                    <table style="width:100%;">
                                        <tr>
                                            <td class="style14">
                                                <asp:RadioButton ID="RadioButton4" runat="server" Text="Work Offer"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton4_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton5" runat="server" Text="Work Wanted"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton5_CheckedChanged" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style24" headers="57px" width="316px">
                                            <asp:Panel ID="Panel4" runat="server" Height="168px">
                                    <table style="width:100%; height: 201px;">
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton6" runat="server" Text="Classes"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton6_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton7" runat="server" Text="Babysitting"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton7_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton8" runat="server" Text="DJ,Musician"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton8_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton9" runat="server" Text="Languages"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton9_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton11" runat="server" Text="Artis And theater"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton11_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton10" runat="server"
                                                    Text="Fitness dance health" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton10_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style25" headers="57px" width="316px">
                    <asp:Panel ID="otherSchoolRegister" runat="server">
                        <table style="width:100%;">
                            <tr>
                                <td>
                                    <asp:RadioButton ID="RadioButton55" runat="server" Text="School register"
                                        AutoPostBack="True" oncheckedchanged="RadioButton55_CheckedChanged" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RadioButton ID="RadioButton56" runat="server" Text="Institute Register"
                                        AutoPostBack="True" oncheckedchanged="RadioButton56_CheckedChanged" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RadioButton ID="RadioButton57" runat="server" Text="Gym"
                                        AutoPostBack="True" oncheckedchanged="RadioButton57_CheckedChanged" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RadioButton ID="RadioButton58" runat="server"
                                        oncheckedchanged="RadioButton58_CheckedChanged" Text="Vechales"
                                        AutoPostBack="True" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="style11" headers="57px" width="316px" align="justify">
                                <asp:Panel ID="FORRent" runat="server">
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton12" runat="server" Text="Home swape"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton12_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton13" runat="server" Text="Office space"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton13_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton14" runat="server" Text="Parking"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton14_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton15" runat="server" Text="storage"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton15_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton16" runat="server" Text="Garage"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton16_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton17" runat="server" Text="Wanted"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton17_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style15">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style15">
                                                </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style7" headers="57px" width="316px">
                                <asp:Panel ID="JobForWanted" runat="server">
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton30" runat="server" Text="Accounted"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton30_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton31" runat="server" Text="Dataentry"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton31_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton32" runat="server"
                                                    Text="Cook,Safe&amp;Kitchen" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton32_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton33" runat="server"
                                                    Text="Driving and Ware Houseing" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton33_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton34" runat="server"
                                                    Text="Housekeeping and Cleaning" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton34_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton35" runat="server" Text="Security"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton35_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton36" runat="server"
                                                    Text="Waitring and Resturent Menagement" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton36_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton37" runat="server" Text="Volunteer"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton37_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton38" runat="server" Text="House Tutor "
                                                    AutoPostBack="True" oncheckedchanged="RadioButton38_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton39" runat="server" Text="Electricen"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton39_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton40" runat="server" Text="Carpenter"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton40_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton41" runat="server" Text="Construction"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton41_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton42" runat="server"
                                                    Text="Teacher for institute" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton42_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton43" runat="server" Text="PartTime Job"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton43_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style10" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style8" headers="57px" width="316px" align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style11" headers="57px" width="316px">
                                <asp:Panel ID="ToShareOffer" runat="server">
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton20" runat="server" Text="Single Room"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton20_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton21" runat="server" Text="Double Room"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton21_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton22" runat="server"
                                                     Text="Family Room Flate" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton22_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton23" runat="server" Text="Gay&amp;Lesbian"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton23_CheckedChanged"
                                                    />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton24" runat="server" Text="ShortTime Room"
                                                    oncheckedchanged="RadioButton24_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style7" headers="57px" width="316px">
                                <asp:Panel ID="Jobforoffer" runat="server">
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton44" runat="server" Text="House Tutor "
                                                    AutoPostBack="True" oncheckedchanged="RadioButton44_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton45" runat="server"
                                                    Text="Teacher for institute" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton45_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton46" runat="server"
                                                    Text="Housekeeping and Cleaning" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton46_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton47" runat="server"
                                                    Text="Cook,Safe&amp;Kitchen" AutoPostBack="True"
                                                    oncheckedchanged="RadioButton47_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton48" runat="server" Text="PartTime Job"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton48_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton49" runat="server" Text="Security"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton49_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style10" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style8" headers="57px" width="316px" align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style11" headers="57px" width="316px">
                                <asp:Panel ID="ToShareWanteb" runat="server">
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton26" runat="server" Text="Single Room"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton26_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton27" runat="server" Text="Double Room"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton27_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton28" runat="server" Text="Family Room Flate"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton28_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButton ID="RadioButton29" runat="server" Text="ShortTime Room"
                                                    AutoPostBack="True" oncheckedchanged="RadioButton29_CheckedChanged" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                </td>
                <td class="style7" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style10" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style8" headers="57px" width="316px" align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style11" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style7" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style10" headers="57px" width="316px" align="center">
                    &nbsp;</td>
                <td class="style8" headers="57px" width="316px" align="center">
                    <asp:Button ID="Button5" runat="server" Text="Go" onclick="Button5_Click"
                        Width="98px" />
                </td>
            </tr>
            <tr>

                    &nbsp;</td>
            </tr>
        </table>

    </div>




I have a problem at run time user select what ever radio button how can I calculate
which which radio button is selected by user and the selected radio button is show in other page in tree format like (rabio button1>rabio button2>) in this format I want to show please help me.
Posted
Updated 18-Oct-12 19:51pm
v2
Comments
Sergey Alexandrovich Kryukov 19-Oct-12 1:55am    
First of all, this is not programming at all. And this is not a question. And your concern is not clear.
You should not create so many controls with the designer -- this is tedious useless and brainless work, error-prone and non-supportable. Remember that you are a software developer and write code generating HTML, not HTML/ASPX.
--SA

Hi anish,

Please see this link once

http://www.w3schools.com/jsref/prop_radio_checked.asp[^]

By checking whether the radio button is selected or not, you can calculate that how many radio buttons are selected in java script.
 
Share this answer
 
Hi,

I think you need radio button list. From Which you can take respective value or Text on selected index change event.
 
Share this answer
 
Hi ,



i think you should use Asp Repeater to show your radio buttons then you can achieve what you are saying .
 
Share this answer
 

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