Forums

This topic is locked

Datalist pager - It thinks it works but it doesn't adjust page size

Posted 10 Apr 2010 17:20:41
1
has voted
10 Apr 2010 17:20:41 Charlie Childs posted:
I am a newbie who has followed a tutorial re a datalist pager. The tutrial expects its students to be more experienced than me. ie it expects students to know what goes at the top of the code behind page ( "imports" in VB / "using" in C# ) and I think it expects students to adjust Visual Studio property / events without any guidence. I have managed most of the adjustments in VWD user interface properties window but it appears that I am missing one vital ingredient.

My actual pager control ( see here - shifting.w02.winhost.com/WholesaleCSHARP_2.aspx ) is behaving just as it would if it was working properly but it is not adjusting the amount of records on the page. It's a little slow ( attached to many db records ) so below I say what it actually does do :

It knows how many records are in the db field because it diplays the right amount of page numbers.and it adjusts the amount of page numbers according to the page size options in its dropdown list.

It highlights which page it believes it is on once a user chooses a page.

It knows which page it is supposed to be displaying - ie "previous" and "next" buttons react properly re clicking on last link or first link.

I think the problem is in the properties events section of VWD user interface or is another very basic mistake because I am as sure as I can be that my code is the same as the lessons which gets excellent response reviews from very many other people who have used it.

I am asking this question in the hope that there may be a simple answer available or so that I can get indication of what could be wrong in order to be able to post a properly described and concise question along my code.

Lesson I followed is here - www.aspdotnetcodes.com/DataList_Dynamic_Paging_PagedDataSource.aspx - and its working example is here - www.aspdotnetcodes.com/Dynamic_Paging_DataList_Sample.aspx

Please can anyone help?

Reply to this topic