Wrox Programmer Forums
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 10th, 2010, 05:45 AM
Authorized User
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datapager in Listview

My code is:
if (!IsPostBack)

ds = cn.MasterBind("select * from TblEmp");

if (ds.Tables[0].Rows.Count > 0)

lstEmp.DataSource = ds.Tables[0];
dp1.Visible = true;
dp1.SetPageProperties(0, dp1.MaximumRows, false);
i set datapager setproperties in page load and also i set on search button click event.
dp1.SetPageProperties(0, dp1.MaximumRows, false);
lstEmp.DataSource = dsParent.Tables[0];
But my search result will not display on first index of datapager.On first index my previous data is displayed when i click on 2 page,my search result is displayed.

i also set false to true but it doesn't work.

Do u have any suggestion,pls help me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Datapager in Listview monika.vasvani ASP.NET 3.5 Professionals 0 March 9th, 2010 09:31 AM
DataPager & PlaceHolder positions jsymons BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 September 25th, 2009 07:50 AM
ListView fredforfree ASP.NET 2.0 Basics 1 August 1st, 2009 03:01 PM
ListView asters VB.NET 2002/2003 Basics 0 March 27th, 2008 05:00 AM
listView AristotleYu ASP.NET 2.0 Basics 0 May 11th, 2006 04:54 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.