TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ianparkins
NA
5
0
How do you traverse through all radiobuttons on a form
Dec 4 2004 7:23 PM
Hi All, I have a bunch of radio buttons on my webform. What I do is only allow one to be checked at a time. But now I want to be able to tell which one is the one that is checked. Is there a way to do something like: foreach (Radiobutton r in this.Controls) { if (r.Checked == true) { ..... } } Obviously the above code doesn't work, but is there a way to do something like that. I don't know the syntax to do it. Please help if you can. Thanks, Zach(Nevermore)
Reply
Answers (
2
)
i have a homework and i'm stuck
drawing objects?