I have a grid view with multiple data rows, a footer and a pager.
In GridView_RowCommand, I detect I am responding to a "Page" command. Because of various tests, I determine the user should have clicked 1 of 2 buttons in the footer before trying to page. I do not want to hide the pager, to force the user to click one of the buttons. Rather, I want to put up an "Are you sure" type dialog and depending on the result, programmatically "click" one of the footer buttons for him.
I have tried:
GridView.Footer.FindContro
l("button1
").click()
with no success.
What is the correct syntax?
Start Free Trial