Groups > Design > Macromedia Dreamweaver MX > Re: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount




Re: Invalid CurrentPageIndex value. It must be >= 0 and
< the PageCount

Re: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount
Thu, 29 Jun 2006 09:18:44 +000
Hi ccaley,

Great post as i am having an idetical issue to the one you described, although
i've not yet managed to solve it, still getting a compiltaiton error


Compiler Error Message: BC30451: Name 'dg_CurrentStock' is not declared.

Line 77: <script language="VB" runat="server">
Line 78: Protected  Sub filterChanged(ByVal Src As Object, ByVal eArgs As
EventArgs)
Line 79: 	Dim e As DataGridPageChangedEventArgs =  New
DataGridPageChangedEventArgs(dg_CurrentStock,0) 
Line 80: 	sp_GetCurrentStock.OnDataGridPageIndexChanged(dg_CurrentStock, e)
Line 81: End Sub

Any ideas?

Many Thanks,

Stephen
Post Reply
Re: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount
Fri, 18 Aug 2006 14:39:05 +000
I agree, this is a great thread! Finally i'm able to control the paging of my
datagrids...

 dear TheFish, i had the identical problem tou describe: your code in VB is
correct, but maybe there is something else that "hide" the declaration
of the datagrid's name (dg_CurrentStock, in your code). In my case, this was the
"MM:if " used by default in DW to hide the datagrid when there are not
results.. maybe you added this istruction clicking in application -> show
region -> Show If ...
 Cut it, and write something else to get the same. 


 i hope it's useful. thank me in italian, please :-)
Post Reply
about | contact