J
J Li
In the footer of the gridview, I have a dropdown and a "Add" button set up,
so I can add new rows to the gridview. The "Add" button has CommandName of
"ADD", so I use that in the GridView1_RowCommand to check if (e.CommandName
== "ADD") before I add the row.
Everything works fine except, after adding a row, then I hit the refresh
button in the browser, another row got added because the commandname in the
RowCommand Event is still "ADD".
so I can add new rows to the gridview. The "Add" button has CommandName of
"ADD", so I use that in the GridView1_RowCommand to check if (e.CommandName
== "ADD") before I add the row.
Everything works fine except, after adding a row, then I hit the refresh
button in the browser, another row got added because the commandname in the
RowCommand Event is still "ADD".