Jim,
The behavior that you're observing has more to do with caching of the page, rather than viewstate. When you do Response.Redirect("InitialPage.aspx") and go back to the initial page, you are looking at the copy of that page from your machine's cache. When you go back to InitialPage.aspx with a querystring parameter, there is no page corresponding to that URL in your cache, and so your values are not retrieved.
What you need is a mechanism that stores the values in the labels. If the values in the labels are part of a multi-page processing routine, then you should store them in the session object, perhaps as part of an object that gets passed from page to page. And then read the value from the session object when the page loads.
HTH
Altaf [MVP-VB]
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Jim McGivney" <mc****@no-spam.sbcglobal.net> wrote in message news:O9**************@TK2MSFTNGP12.phx.gbl...
I have an aspx page, on this page I have a number of Labels.
If I response.Redirect("anotherPage.aspx") and then return by
Response.Redirect("InitialPage.aspx") without a query string,
the content of the Labels is maintained by View State.
If I return with a query string
Response.Redirect("InitialPage.aspx?Pram1=value1);
the contents of the Labels are not maintained.
Any suggestions as to how to maintain the contents of the Labels when using
a query string would be appreciated.
Sample code would be helpful.
Thanks in advance for your help,
Jim