ListView that comes with ASP.NET 3.5 presents considerably a flexible structure. In addition to all operations of GridView, also Insert operation can be done by using this control. On the other side, we can compose the HTML output as the way we want. To perform this kind of process was nearly impossible in GridView.
Another advantage of ListView is that we can do paging operation over QueryString! ListView control does the paging operations on a control named DataPager(DataPager has also come with ASP.NET 3.5). ListView control that is formed ordinarily do the paging operations by LinkButtons included in DataPager; thus JavaScript functions called as a result of Postback operation help doing paging operation. So, there won’t be any change in the URL of the page. If we want paging operation to be done by a value like PageNo carried on QueryString as UrunListele.aspx?SayfaNo=3, the only thing we must do is that to assign a value like SayfaNo to the QueryStringField property of DataPager control. I also want to mention about this property; you can define how many records will be seen in one page by using PageSize property of DataPager. The changes made in DataPager control and an example screen output can be seen below.
<asp:DataPager ID="DataPager1" runat="server" QueryStringField="SayfaNo" PageSize="15">
...
</asp:DataPager>
Actually, it is a very important and useful tip for users to reach the pages they desired over QueryString and for search engine improvement(SEO).