Posted on: 3/4/2015 6:33:36 PM | Views : 530

Hi all,
I have a problem with a listview that postbacks two times in order to pass to next page. I made a gallery with that, it also includes a datapager. When I use sqldatasource there is no problem but I don' wanna use this. I want to make a codebehind binding. My source is as follows.

<asp:ListView ID="lvCaricature" runat="server" DataMember="DefaultView"> <EmptyDataTemplate> <span>No data was returned.</span> </EmptyDataTemplate> <ItemTemplate> <span style="background-color: #E0FFFF;color: #333333;"> <img src='<%# Eval("PhotoUrl") %>' alt="" /> <br /> <br /> </span> </ItemTemplate> <LayoutTemplate> <div id="itemPlaceholderContainer" run ...

Go to the complete details ...