RE: Error message - Name bind not declared
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
"JJ297" wrote:
> 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?
>
>
Date:Mon, 20 Aug 2007 08:22:05 -0700
Author:
|