Error message - Name bind not declared

J

JJ297

This is the error message I'm getting when trying to bring back the
data to show whether a check box is listed or not this is what I have
so far:

<EditItemTemplate><asp:RadioButton ID="RadioYes" GroupName="FAQs"
runat="server" Text="Yes" Checked='<%# testfaq(Bind("displayedques"))
%>' />

<asp:RadioButton ID="RadioNo" runat="server" GroupName="FAQs"
Text="No" Checked='<%# testfaq(Bind("nondisplayedques")) %>' />
</EditItemTemplate>

This is on my code behind page
Public Function testfaq(ByVal mycheckvalue As String) As Boolean
If mycheckvalue = "Y" Then
Return True
Else : Return False
End If

End Function

Any suggestions?
 
G

Guest

Hi JJ,
I don't think it is possible to use Bind as parameter for other method. My
usual approach to get values from check boxes and radio buttons is to use
handler for updating event and fill them manually.

Regards,
Ladislav
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top