Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Radio button assignment snafu (http://www.velocityreviews.com/forums/t773593-radio-button-assignment-snafu.html)

Chumley the Walrus 06-21-2004 06:07 PM

Radio button assignment snafu
 
I'm trying to parse the selected value from a group of radiobuttons,
but the below code for the radio buttons doesnt work, whereas the one
for the text box does.
<% dim dateinbox, sportsel
dateinbox = TextBox1.text
sportsel = Sport.text %>

<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>

<asp:RadioButton id="sport1" GroupName="Sport" text="mlb" value="mlb"
runat="server">
</asp:RadioButton>
<asp:RadioButton id="sport2" runat="server" GroupName="Sport"
text="nfl" value="nfl" /></asp:RadioButton>

...if i try to assign the same id "sport" to the radio buttons, i get
a "there is already an ID with the name 'sport' error

?????


All times are GMT. The time now is 03:36 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.