I'm pulling a few records from a table and writing them to a databound
dropdown.
I use:
if ispostback = false then
bindcontrols()
end if
to make sure that it retains the selected value for postback.
That all works fine.
The problem comes in when I choose to delete an item from the list. You can
select an item from the dropdown and press 'delete.' It performs a postback
and the item is deleted. However, if you press the back button after
deleting, the old item is retained in the dropdownlist, even though it was
just deleted.
I've tried using Response.Cache.SetCacheability(HttpCacheability.No Cache)
but that just expired the page. If I refresh the expired page, it brings
back the old values.
Is there a way to fix this?
Thanks.
Matt