S
Simon
Hi, I need to prevent Internet Explorer to save the page in history
collection when it is in PostBack.
To try do this I have put this code:
protected override void OnLoad( EventArgs evt)
{
if (IsPostBack)
Response.Cache.SetNoStore();
.....
base.OnLoad( evt);
}
With above code, when I press the back button the internet explore return
"The page cannot be displayed" because the IE don't save the page into the
history I think, but I need to prevent the IE history collection change, so
when I press the back button IE display the page loaded not in postback (the
first time that the page was loaded).
Is possible to do this ?
Thanks in advance.
Simon.
collection when it is in PostBack.
To try do this I have put this code:
protected override void OnLoad( EventArgs evt)
{
if (IsPostBack)
Response.Cache.SetNoStore();
.....
base.OnLoad( evt);
}
With above code, when I press the back button the internet explore return
"The page cannot be displayed" because the IE don't save the page into the
history I think, but I need to prevent the IE history collection change, so
when I press the back button IE display the page loaded not in postback (the
first time that the page was loaded).
Is possible to do this ?
Thanks in advance.
Simon.