Click here to Skip to main content


Questionhow to sort Datalist using Dropdown which is not in the datalist control Pinmembersreerajsn1237-Nov-12 22:19 
<asp:DropDownList ID="DDLSorting" runat="server" AutoPostBack="True" onselectedindexchanged="DDLSorting_SelectedIndexChanged"
<asp:ListItem>Best Match</asp:ListItem>
<asp:ListItem>New Arrivals</asp:ListItem>
<asp:ListItem Value="3" Text="Price: Low to High"></asp:ListItem>
<asp:ListItem>Price: High to Low</asp:ListItem>
<asp:ListItem>Highest Discount</asp:ListItem>

i have this dropdown
how can i sort values in the datalist control using this dropdown

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web03 | 2.8.150302.1 | Last Updated 4 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid