-
Iterating RadioButton controls
I would like to iterate the collection of RadioButton controls on my WebForm.
I can go through the collection with this code:
Dim ctl as Control
Dim ctr as Integer
for each ctl in me.controls
if typeof ctl is LiteralControl then
ctr = ctr + 1
end if
next
This works to count the number of controls, but I also need to check the
Checked state of the radiobutton. I tried checking for typeof ctl is RadioButton,
but that returns a count of 0.
Is there any way I can check for whether the radio button is checked so I
can set a condition for a button? And what is a LiteralControl - the help
is less than illuminating?
Thanks,
Al Mowbray
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks