Paging error

G

Guest

Hi guys,
I'm getting error:-
BC30456: 'dgResults_Page' is not a member of 'ASP.datagrid_aspx'.
from the code below what am i doing wrong?


Code below:-
----------------
<ASP:DataGrid id="dgResults" runat="server"
OnPageIndexChanged="dgResults_Page"
Width="700"
BackColor="#ccccff"
BorderColor="black"
ShowFooter="false"
CellPadding=3
CellSpacing="0"
Font-Name="Verdana"
Font-Size="8pt"
HeaderStyle-BackColor="#aaaadd"
EnableViewState="false"
AllowPaging="true" PageSize="3"/>

Sub dgResults_Page(ByVal Sender As Object, ByVal E As
DataGridPageChangedEventArgs)
dgResults.CurrentPageIndex = e.NewPageIndex
DataBind()
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top