I have two radio buttons that are part of a groupName. I am not sure how to go about getting the SelectedValue of the group via VB in my code behind. I am not abel to use a RadioButtonList as I have HTML code between the groped radio buttons.
Here is my code.
How do I get the selected value from the RadioButton GroupName=RadioButtonHousingQuestions above using VB code behind?Code:<table> <tr> <td><b>Do you... </b></td> </tr> <tr> <td> <asp:RadioButton ID="RadioButtonHousing" runat="server" Text="Contract for Group Housing?" GroupName="RadioButtonHousingQuestions" ValidationGroup="sample" /> </td> </tr> <tr> <td><b>OR</b></td> </tr> <tr> <td><b>Do your...</b> </td> </tr> <tr> <td> <asp:RadioButton ID="RadioButtonHousing2" runat="server" Text="Attendees independently make their own housing arrangements?" GroupName="RadioButtonHousingQuestions" ValidationGroup="sample" /> </td> </tr> <tr> <td> <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="sample"/> </td> </tr> </table>
I have looked all over and most are saying use a RadioButtonList, but I can't in this case.
Thanks for any help.







Bookmarks