Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
62163 Points
6101 Posts
May 15, 2008 03:01 AM|LINK
Hi asubiswal ,
It works fine on my pc.
You can write some code in PagePropertiesChanging event of Listview contorl if it still does not work.
protected void ListView1_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e) { this.DataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false); }
<asp:ListView ID="lstView1" runat="server" DataKeyNames="id" DataSourceID="SqlDataSource1" onpagepropertieschanging="ListView1_PagePropertiesChanging">
Samu Zhang -...
All-Star
62163 Points
6101 Posts
Re: Problem with DataPager
May 15, 2008 03:01 AM|LINK
Hi asubiswal ,
It works fine on my pc.
You can write some code in PagePropertiesChanging event of Listview contorl if it still does not work.
protected void ListView1_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e) { this.DataPager1.SetPageProperties(e.StartRowIndex, e.MaximumRows, false); }Samu Zhang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.