Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Radio Button List Question

Reply
Thread Tools

Radio Button List Question

 
 
Poppy
Guest
Posts: n/a
 
      12-04-2003
I have a radio button list

value = 1, text = "Option 1"
value = 2, text = "Option 2"

It might soung stupid but how do I get the first item to display if I enter
the number 1 and the second item if I enter the number 2.

Cheers Big Ears



 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      12-04-2003
Enter it into what?

<%
sVar = "2"
%>

<input type="radio" value="1"<% If sVar = "1" Then Response.Write " checked"
%>>Option 1
<input type="radio" value="2"<% If sVar = "2" Then Response.Write " checked"
%>>Option 2

Ray at work

"Poppy" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I have a radio button list
>
> value = 1, text = "Option 1"
> value = 2, text = "Option 2"
>
> It might soung stupid but how do I get the first item to display if I

enter
> the number 1 and the second item if I enter the number 2.
>
> Cheers Big Ears
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
radio button list question Yankee Imperialist Dog ASP .Net 2 08-29-2008 08:47 PM
ASP.NET Reset Radio Button in a group of Radio Buttons Scott D Johnson ASP .Net 1 09-27-2006 10:38 PM
checkbox list and radio button list puja ASP .Net Web Controls 1 05-24-2006 03:41 AM
JSP / EL question: how to pick out a request param for list/combo box, and radio button group mot12345@alexandria.ucsb.edu Java 1 02-24-2006 03:11 AM
Radio button List problem: How to find value of Radio button list's Selected Item using javascript?? Hiten ASP .Net Web Controls 1 05-26-2004 10:32 AM



Advertisments