DNNDev.com Forums Minimize
Problem with radio button list and Bit data type
Last Post 28 Sep 2010 01:01 AM by Ryan Moore. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Angus Beare
Advanced Member
Advanced Member
Posts:753
Avatar

--
02 Sep 2010 04:25 PM  
I have the following radio button list

<radiobuttonlist id="rblIs_HeadQuarter" DataField="Is_HeadQuarter" datatype="boolean" >
<listitem value="1">yes</listitem>
<listitem value="0">no</listitem>
</radiobuttonlist>


The data field is a bit type (boolean) in the DB. When I load the form I get this error:

Invalid data type in control 'rblIs_HeadQuarter'

I changed the radio button to a checkbox and it worked fine but the client doesn't want a check box.

Am I doing something wrong or is this a bug?

thanks
Gus
if the only tool you have is a hammer you tend to see every problem as a nail.. http://www.carawaydesign.com
simon toulson
Basic Member
Basic Member
Posts:237
Avatar

--
18 Sep 2010 08:35 PM  
Try:-

<listitem value="True" selected="true">Yes</listitem>
<listitem value="False">No</listitem>

Saludos,
Ryan Moore
Basic Member
Basic Member
Posts:222
Avatar

--
28 Sep 2010 01:01 AM  
that, or whenever i run into an invalid data type, it's solved by doing a CAST to make sure i'm dealing with a number
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy