Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: DataGrid Errors


Message #1 by "Roger Heckman" <roger.heckman@t...> on Thu, 13 Sep 2001 11:42:25 -0400
Any explanations for this?



A Runtime Error has occurred.  Do you wish to Debug?

Line:  0

Error:  Object expected



This is generated by trying to change pages from the following code:



 sub Page_Change(obj as object, e as DataGridPageChangedEventArgs)

     dgRoger.CurrentPageIndex=e.NewPageIndex

     dgRoger.DataBind()

end sub

</script>

<html>

    <body>

        <form>

            <asp:DataGrid id="dgRoger"runat="server" AllowPaging="True"

PagerStyle-Mode="NumericPages" PageSize="12"

OnPageIndexChanged="Page_Change" />

        </form>

    </body>

</html>



The page opens fine, but will not progress from one page of data to another.

Instead I get the error stated above.  Teach me- I obvoiusly need it!

TIA



Roger






  Return to Index