?
Solved

Failing at returning radiobuttonlist selected item value custom control  with radiobuttonlist

Posted on 2009-04-26
1
Medium Priority
?
308 Views
Last Modified: 2012-06-21
Hello!

Im having one annoying problem with the project im working on...
Im trying to return the seleted item value from a custom control all im getting is when trying to run the script is "When casting from a number it must be less than infinity" and it means something like the seletected radiobuttonlistitem does not have a value, even though  I know it has

See the code examples!

Ive left out the code for adding the info just so you know

Appreciate any help I can get!

Im adding the the content to the radioboxlist1 control here and Im also setting the value of an item 
Public Sub AddItemsCheckBoxList(ByVal alt As String, ByVal pointsgiven As String)
        RadioButtonList1.Items.Add(alt)
        RadioButtonList1.Items.Item(counter).Value = pointsgiven
 
        counter = counter + 1
    End Sub
'''''' 
Here, I want to be able to retrieve the selected value but im getting nothing at all even though I know it should be working
''''''''
 Public ReadOnly Property getPointsGiven() As String
        Get
            Return RadioButtonList1.SelectedValue
        End Get
   End Property

Open in new window

0
Comment
Question by:clooak
1 Comment
 

Accepted Solution

by:
clooak earned 0 total points
ID: 24236978
Ive got it working by adding the code to add the question/alternatives function  to page_init
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Integration Management Part 2
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

807 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