Click here to Skip to main content
15,667,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<asp:DropDownList ID="DDSortBy" runat="server" AutoPostBack="true"  CssClass="RightDD" OnSelectedIndexChanged="DDSortBy_SelectedIndexChanged">
                <asp:ListItem Value="0">Random</asp:ListItem>
                <asp:ListItem Value="1">Album</asp:ListItem>
                <asp:ListItem Value="2">Artist</asp:ListItem>
                <asp:ListItem Value="3">Price</asp:ListItem>
                <asp:ListItem Value="4">Top Rated</asp:ListItem>
                <asp:ListItem Value="5">Year</asp:ListItem>

1 solution

The list of items should be populated in code behind file and on post back event you can then re-order them.
Share this answer
Zieyaad 29-Jul-14 18:56pm    
Zieyaad 29-Jul-14 18:57pm    
I'll give it a shot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900