Click here to Skip to main content
       

C#

 
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>
</asp:DropDownList>
 

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
Web01 | 2.8.141220.1 | Last Updated 22 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid