Web components for searching database data

Asked

Viewed 34 times

0

I’m doing a small system of registering product items.

As I came from Delphi I was looking for a way to load the products by code or by name in a Dropdownlist.

I was searching and saw a system that was using a component as I wanted, where the user searches by code or by name and is loaded the information in Dropdownlist.

Could someone give me tips on how to do this?

  • You look for the Autocomplete?

  • Something from uncle, I an example using jquery autocomplete, I thought that the component of the video (a coded textbox , pasted into a name textbox) would be a component, as I came from Delphi , I think I’m confused that might be a css of life by what I’ve been searching for

1 answer

0

You can pass the parameter to your query that populates the Dropdrownlist:

<asp:SqlDataSource id="Prod" runat="server"
  ConnectionString="<%$ ConnectionStrings:myBase %>"
  SelectCommand="SELECT ColunaID, ColunaText FROM Tabela
                 WHERE ParametroFiltro= @ParametroFiltro">

  <SelectParameters>
    <asp:QueryStringParameter Name="ID" QueryStringField="ParametroFiltro" />
  </SelectParameters>
</asp:SqlDataSource>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.