This will ensure the page doesn't get cached, which seems to be your
problem.
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"JIM.H." <> wrote in message
news:8F8E52F7-4B71-4769-9B36-...
> Hello,
> I have two apsx pages, and I set a session variable in asp1 and click to a
> button to go to aspx2. In aspx2, I use this session variable in the query
> and
> show data on the datagrid. I do this in the page) load without any post
> back
> check. My problem is: each time I click button and go to aspx2, it is
> always
> previous data shown in the data grid (as if cash is brought and query is
> not
> performed), when I click refresh in the internet explorer, right data is
> shown. It seems to me page_load is aspx2 is not launched again if I click
> back in IE and click my button again to come back to aspx2. What is
> problem/solution?
> Thanks,
> Jim.
>