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 04:17 AM by Gary yang - MSFT

  • venkatu2005

    venkatu2005

    All-Star

    32487 Points

    6744 Posts

    Re: search field to return data to webpage

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

    ziako

    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


    |

    Thanks.
  • Gary yang - MSFT

    Gary yang -...

    All-Star

    25901 Points

    2588 Posts

    Re: search field to return data to webpage

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

     

    ziako

     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 ›