I have an initial summary GridView which has a datasource created from a SQL database. The rows in this GridView can be clicked which passes parameters to the URL.
As this initiates a page load, I have an if statement to check for a certain querystring and modifying the datasource based on the other parameters passed, so I'm using the same GridView with a sort of 'drilldown' feature.
After the drilldown, I want to add an additional column with a button, which I've managed to do. I need this buttoon to update a field in the database when clicked, so I've set the button.CommandName property to a method which does this.
Everything works fine, except the method doesn't fire when I click the button!
From some research, it seems that as the clicking of the button triggers a postback, the event is caught??
Can anyone help?
Thanks
As this initiates a page load, I have an if statement to check for a certain querystring and modifying the datasource based on the other parameters passed, so I'm using the same GridView with a sort of 'drilldown' feature.
After the drilldown, I want to add an additional column with a button, which I've managed to do. I need this buttoon to update a field in the database when clicked, so I've set the button.CommandName property to a method which does this.
Everything works fine, except the method doesn't fire when I click the button!
From some research, it seems that as the clicking of the button triggers a postback, the event is caught??
Can anyone help?
Thanks