Hi,
I originally posted this question in the Microsoft Content Management Server
(MCMS) newsgroup but was told to post here.
In my MCMS site, I've written an "admin" page that sends out emails to a
list of subscribers. Everything is working fine, but if the admin user
happens to click refresh after the '000s emails have been sent, they will be
sent again. Obviously not good. I'm using some javascript to initially prompt
the user "are they sure" and then set the value "Y" or "N" in a hidden
textbox. After the emails have been sent (at the end of the click event) I
set this value back to "N".
If I overload LoadViewState and SaveViewState and step
through these events, I can see my textbox being set to "N" after the email
send, then, on the refresh it becomes empty string and then "Y" again.
I have also tried
"Page.Response.Cache.SetCacheability(HttpCacheabil ity.NoCache);" in the
page_load event.
What do I have to do to make refresh function like the page had just been
hit for the first time. Can anyone assist me with this?
Thanks,
Anthony