krol
Jul 1st, 2003, 08:59 AM
I want to use datagridpaging, so I have set the allowpaging propertie to TRUE.
Then I use the following code to fill the grid with the next page :
Private Sub dgRoute_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles dgRoute.PageIndexChanged
Try
Response.Write("testing 1,2,3")
dgRoute.CurrentPageIndex = e.NewPageIndex
DgFiller()
Catch ex As Exception
Response.Write(ex.Message)
End Try
end sub
because the response.write is not written to the page I think that somehow the sub is totaly ignored?
Does anybody knwow what causes this problem?
Krol
Then I use the following code to fill the grid with the next page :
Private Sub dgRoute_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles dgRoute.PageIndexChanged
Try
Response.Write("testing 1,2,3")
dgRoute.CurrentPageIndex = e.NewPageIndex
DgFiller()
Catch ex As Exception
Response.Write(ex.Message)
End Try
end sub
because the response.write is not written to the page I think that somehow the sub is totaly ignored?
Does anybody knwow what causes this problem?
Krol