Using Radio button in a Data Repeater

  • Thread starter Samuel Ashley via .NET 247
  • Start date
S

Samuel Ashley via .NET 247

I want to use a radio button in a data repeater which will allow me to select only one item.
could somebody please help me. Thanks
 
R

Rajesh C K R

One way is the following:

Inside the repeater (say for each item template), add a line

<input type="radio" name="mychk" value=<%#whatever%>>

Note that the above is NOT marked runat =server.

On the post back you can find which button was checked from Request["mychk"]

Hope this helps

Rajesh
http://www.sharpVoice.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top