Reputation: 703
I have a page with a dynamic table, data pulled from a GET method.
On it, a button which POSTs to another asp page.
Once you click the button, if everything went fine, the table should should be emtpy but even though the POST occurs successfully, after the postback caused by the button click, the table still has data even though it should not.
If the page is refreshed only then does it update.
How to make it so it updates after the button click? (there may be a slight delay after the POST and getting the data hence it still shows the content of the table).
Upvotes: 0
Views: 559
Reputation: 5367
Is it not the case of "double page load" and initialization?
if(!isPostBack)
{
//Clear Table
}
Upvotes: 1