DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 07:26:42 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    JJ297
          2    Ladislav Mrnka


Error message - Name bind not declared   
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 07:26:42 -0700   Author:  

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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us