Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 10th, 2010, 05:45 AM
Authorized User
Points: 493, Level: 7
Points: 493, Level: 7 Points: 493, Level: 7 Points: 493, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2006
Location: gandhinagar, gujarat, India.
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datapager in Listview

Hello,
My code is:
if (!IsPostBack)
{

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

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

lstEmp.DataSource = ds.Tables[0];
lstEmp.DataBind();
dp1.Visible = true;
dp1.SetPageProperties(0, dp1.MaximumRows, false);
//ClearState();
}
}
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];
lstEmp.DataBind();
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.
Thanks
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.