<asp:ListBox ID="PayD" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2" DataTextField="Payment" DataValueField="Payment" AppendDataBoundItems="true"> <asp:ListItem Value=" ??????? " Selected=True>All <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:Raw_dataConnectionString %>" SelectCommand="SELECT * FROM [MiscBilling] WHERE ([Payment] = @Payment)"> <SelectParameters> ^Value from Listbox^ <asp:ControlParameter ControlID="PayD" Name="Payment" PropertyName="SelectedValue" Type="String" /> </SelectParameters>
WHERE Payment LIKE %@Payment%
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)