Click here to Skip to main content
11,805,316 members (66,539 online)


Questionhow to sort Datalist using Dropdown which is not in the datalist control Pin
sreerajsn1237-Nov-12 21:19
membersreerajsn1237-Nov-12 21: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.151002.1 | Last Updated 9 Oct 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid