Stupid error - Radiobox list...

C

Child

I am having errors capturing both the value and the text of my radio box
list selections:

the list looks like this:
<asp:RadioButtonList id="rblReferralFollowThrough" runat="server">
<asp:ListItem Value="Always">Always</asp:ListItem>
<asp:ListItem Value="Almost Always">Almost Always</asp:ListItem>
<asp:ListItem Value="Sometimes">Sometimes</asp:ListItem>
<asp:ListItem Value="Never">Never</asp:ListItem>
</asp:RadioButtonList>

When I try to insert either

rblreferralfollowthrough.selecteditem.value
or
rblreferralfollowthrough.selecteditem.text into my database I get the
error:
Object reference not set to an instance of an object.

WTF am I doing wrong?




--
BethF, Anchorage, AK

It's YOUR God.
They are YOUR rules.
YOU burn in hell.
 

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

Top