A
AAaron123
I have a "List" form that uses an asp:repeater to list a bunch of items in a
database.
Each item includes an edit and a delete button.
If the edit button is clicked a new "Edit" form is opened so the item can be
edited.
If the delete button is clicked the "Edit" form is called but it simply
deletes the item from the database and then does a Response.Redirect back to
the "List" form that called it.
I think what might be happening is that the browser knows that it is already
displaying the "List" form so it does not redraw it.
In any event, when delete is clicked, the screens flashes but the "List"
form with the delete button is not redrawn (i.e. I assume it is not redrawn
because it is still displaying the deleted item.)
The deleted item really has been delete. I've verified that.
I have:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
in the "List" form's load event handler.
Can you suggest how to get the "List" form to redraw?
Thanks
database.
Each item includes an edit and a delete button.
If the edit button is clicked a new "Edit" form is opened so the item can be
edited.
If the delete button is clicked the "Edit" form is called but it simply
deletes the item from the database and then does a Response.Redirect back to
the "List" form that called it.
I think what might be happening is that the browser knows that it is already
displaying the "List" form so it does not redraw it.
In any event, when delete is clicked, the screens flashes but the "List"
form with the delete button is not redrawn (i.e. I assume it is not redrawn
because it is still displaying the deleted item.)
The deleted item really has been delete. I've verified that.
I have:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
in the "List" form's load event handler.
Can you suggest how to get the "List" form to redraw?
Thanks