neiwbie help: Storing form values when page is refreshed

  • Thread starter Thread starter abdul bari
  • Start date Start date
A

abdul bari

Hi

I have a standard html form which is generated by an XSL sheet. The
form data is submitted to the server and is passed on to file.aspx for
processing. However file.aspx is refreshed every 5 seconds, when this
happens the form data is lost, is there anyway whereby when the page
is refreshed the form data remains. I thought with ASP.NET all data is
maintained- so a refresh will still maintain the form data. The form
data is obtained through the Request.Params.

In this scenrio when file.aspx is refreshed will the server side
script be executed again? thus obtaining the form value again...

You help will be much appreciated.
Abz
 
If you refresh using Request.Params then each time it refreshes it is
looking at the querystring. So if you come to the page with
file.aspx?value1=test1&value2=test2 then you fields get populated with that.
But if you are doing a meta-refresh then what is getting passed the second
and any time after that is only file.aspx. What you need to do is to either
populate session variables for each value passed or perhaps just check to
see if the viewstate is already populated and if so then do not get the
values from Request.Params.

Stanley
 
Back
Top