Home/ASP.NET Forums/General ASP.NET/Web Forms/search field to return data to webpage

search field to return data to webpage [Answered]RSS

6 replies

Last post Aug 27, 2009 12:17 AM by Gary yang - MSFT

  • venkatu2005



    20753 Points

    6706 Posts

    Re: search field to return data to webpage

    Aug 25, 2009 12:04 AM|venkatu2005|LINK


    I am using VB rather than csharp. How do i ammend this code and how do i add to the viewcode section.

    You want it in VB

    Protected Sub Btn_FindAccount_Click(ByVal sender As Object, ByVal e As EventArgs)
        Label_CustID.Text = TxtBox_CustID.Text
    End Sub


  • Gary yang - MSFT

    Gary yang -...


    20996 Points

    2575 Posts

    Re: search field to return data to webpage

    Aug 27, 2009 12:17 AM|Gary yang - MSFT|LINK



     Hi Thanks for your help. I appear to gettting the following error using your suggested code:

    Parser Error Message: A call to Bind was not well formatted.  Please refer to documentation for the correct parameters to Bind.

    Source Error:

    Line 27:             Customer Name:  
    Line 28:             <br /> 
    Line 29:             <asp:Label ID="Lbl_Name" runat="server" Text='<%# Bind("Customer Name") %>' /> 
    Line 30:             <br /> 
    Line 31:             <br /> 

    As far as I know, Bind method doesn't support field name with spaces.

    Gary yang - MSFT
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • ‹ Previous Thread|Next Thread ›