R
Rick Strahl [MVP]
Hi all,
I'm loosing my mind <g>...
I have a datagrid and I can't for hte live of me not get the
PageIndexChanged event to fire in my codebehind form.
<asp:datagrid id="dgErrorLog" runat="server"
onpageindexchanged="dgErrorLog_OnPageIndexChanged"
enableviewstate="False" allowpaging="True" pagesize="20"
autogeneratecolumns="False" width="100%" >
Nothing that I haven't done a million times before, but on this page the
event in the codebehind is not firing:
protected void dgErrorLog_OnPageIndexChanged(object sender,
DataGridPageChangedEventArgs e)
{
this.dgErrorLog.CurrentPageIndex = e.NewPageIndex;
this.ShowLog();
}
All other events in the page are firing just fine and the EventTarget is
posting to the page just fine. But the event code just doesn't fire.
I've tried using descriptive referenceing (as above on the page) as well as
explicit event hookup through VS (so it shows up in InitializeComponent()).
Neither fires the event...
Anybody have any idea why this would happen? I've done this a million times,
but I can't see why in this case event handling is crapping out.
Any help appreciated...
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
I'm loosing my mind <g>...
I have a datagrid and I can't for hte live of me not get the
PageIndexChanged event to fire in my codebehind form.
<asp:datagrid id="dgErrorLog" runat="server"
onpageindexchanged="dgErrorLog_OnPageIndexChanged"
enableviewstate="False" allowpaging="True" pagesize="20"
autogeneratecolumns="False" width="100%" >
Nothing that I haven't done a million times before, but on this page the
event in the codebehind is not firing:
protected void dgErrorLog_OnPageIndexChanged(object sender,
DataGridPageChangedEventArgs e)
{
this.dgErrorLog.CurrentPageIndex = e.NewPageIndex;
this.ShowLog();
}
All other events in the page are firing just fine and the EventTarget is
posting to the page just fine. But the event code just doesn't fire.
I've tried using descriptive referenceing (as above on the page) as well as
explicit event hookup through VS (so it shows up in InitializeComponent()).
Neither fires the event...
Anybody have any idea why this would happen? I've done this a million times,
but I can't see why in this case event handling is crapping out.
Any help appreciated...
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp