DataGrid Paging

G

Guest

On my local machine the paging works just fine. On the Remote server I get
the following error message:

CS0117: 'ASP.EVNR_aspx' does not contain a definition for 'PageChanged_Click'

Here is the Interface Markup:
<asp:datagrid id="clubdg1" runat="server" CssClass="txt" ShowFooter="True"
GridLines="Horizontal"
BorderWidth="1px" BorderColor="White" AllowPaging="True"
AutoGenerateColumns="False" CellPadding="4"
OnUpdateCommand="Update_Click"
OnPageIndexChanged="PageChanged_Click" OnDeleteCommand="Delete_Click"
OnCancelCommand="Cancel_Click"
OnEditCommand="Edit_Click" DataKeyField="EVNRID">
<FooterStyle Font-Names="Verdana" HorizontalAlign="Center"
ForeColor="White" VerticalAlign="Middle"
BackColor="#000044"></FooterStyle>
<AlternatingItemStyle Font-Names="Verdana"
HorizontalAlign="Left" ForeColor="White" VerticalAlign="Top"
BackColor="#000066"></AlternatingItemStyle>
<ItemStyle Font-Names="Verdana" HorizontalAlign="Left"
ForeColor="White" VerticalAlign="Top"
BackColor="Black"></ItemStyle>
<HeaderStyle Font-Names="Verdana" Font-Bold="True"
HorizontalAlign="Center" ForeColor="White"
VerticalAlign="Bottom"
BackColor="#000044"></HeaderStyle>...<asp:DataGrid>

Here is the codebehind for paging:

protected void PageChanged_Click(object sender, DataGridPageChangedEventArgs
e)
{
clubdg1.SelectedIndex=-1;
clubdg1.CurrentPageIndex=e.NewPageIndex;
BindData();
}
Can anyone tell me what I have done wrong and help me fix it?

I am Sam-
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top