• pwalter83 (1/31/2013)

    Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Sounds like you've defined a DataSource for the GridView in the aspx source code, apart from the binding that you've coded for the button's click event. I would leave the GV unbound in the aspx code and do late binding only when the button is clicked.