DataList not arranging Items Orderwise coming from Database

Posted by Ksuresh under ASP.NET on 10/16/2012 | Points: 10 | Views : 1889 | Status : [Member] | Replies : 0
Hi All,

I am using DataList to Display images on Default.aspx page.

Sql Query:

select * from table where Active = 1 order by Id

<asp:DataList ID="List" runat="server" RepeatColumns="4" CellPadding="5"  Width="500px">
<%#Eval("AutoId") %>

But Datalist showing items in order 1,3,4,5,2 . i want it in order 12345. How to do?



(No response found.)

Login to post response