Losing controls when backing using the browser back button

I'm losing view of a few controls when I back using the browser back button,
I redisplayed it by using the refresh button.
How will I set to auto refresh so I don't need to refresh the page using the refresh button?
Thanks
zachvaldezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:
You are likely not handling the back button correctly on the server if you have to refresh.

Have a quick look at this
https://www.google.com/search?q=asp.net+back+button
and
https://www.google.com/search?q=asp.net+survive+back+button

and come back with a specific question or elaborate on the one you asked which is not completely clear
0
InsoftserviceCommented:
Its for refresh only. " location.reload(); "
May i know your scripting language.
Why don't you create back button for your website.That would help


<html>
<head>
<script type="text/JavaScript">
<!--
function AutoRefresh( t ) {
      setTimeout("location.reload(true);", t);
}
//   -->
</script>
</head>
<body onload="JavaScript:AutoRefresh(5000);">
<p>This page will refresh every 5 seconds.</p>
</body>
</html>
0
Michel PlungjanIT ExpertCommented:
@ insoftservice several issues with your code

1) do not call setTimeout with a string. The recommended method is
   setTimeout(function() { location.reload(true);}, t);
2) do not add event listeners inline and no need to prefix them with javascript: - instead do

window.onload=function() {
  AutoRefresh(5000);
}
0
zachvaldezAuthor Commented:
This worked but I'm open to any suggestion or correction! I placed this is the Page_Load Event

     Response.Buffer = True
            Response.CacheControl = "no-cache"
            Response.AddHeader("Pragma", "no-cache")
            Response.Expires = -1441

and on the page header directive...
<meta http-equiv="refresh" content="600" />

Now if go to a page and click the browser back, I still have the controls. THIS WORKED ONLY FOR IE I believe.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zachvaldezAuthor Commented:
I provided the solution that worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.