How to get the "List" form to redraw

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,144
Messages
2,570,823
Members
47,369
Latest member
FTMZ

Latest Threads

Top