neiwbie help: Storing form values when page is refreshed

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
 
S

Stanley

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top