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>...<aspataGrid>
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-
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>...<aspataGrid>
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-