?
Solved

What is the syntax to compare a selected item in a radio list box with a value?

Posted on 2004-08-13
6
Medium Priority
?
346 Views
Last Modified: 2010-04-07
What is the syntax to compare a selected item in a radio list box with a value?

for an if statement

If (rblPart.SelectedItem Is "MAKE PART") Then
0
Comment
Question by:Weller0123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Expert Comment

by:AerosSaga
ID: 11795343
If they each have specific names

If Me.Myrdo1.Checked Then
0
 
LVL 8

Accepted Solution

by:
daffodils earned 2000 total points
ID: 11795418
Use
rblPart.SelectedIndex.Value ...if you want to compare with "MAKE PART" with the RadioBurronList item's Value

Or
rblPart.SelectedIndex.Text ...if you want to compare with "MAKE PART" with the RadioBurronList item's Text
0
 

Author Comment

by:Weller0123
ID: 11795435
There is no checked method in a RadioButtonList.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:Weller0123
ID: 11795446
I see...

Thanks
0
 
LVL 9

Expert Comment

by:Rodney Helsens
ID: 11795462
The SDK is great for these type of questions. If you are eager to learn .NET, it will prove to be an indispensible resource.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconradiobuttonlistwebservercontrol.asp

“Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime”—Author unknown
0
 
LVL 8

Expert Comment

by:daffodils
ID: 11795463
RadioButtonList is a List Control.. that's why they don't have a Checked property.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question