Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing a page

Status
Not open for further replies.
May 8, 2004
92
0
0
GB
Hi guys,

How can i refresh an asp page using the same form data after regular intervals. ;) say 2-mins

I want to bypass that Retry and cancel too..or any other prompts that may occour when page refreshes.

Cheers.
 
Dump all the form elements into hidden vars on the page you're showing them on and then set up javascript to submit the form to itself after x amount of time.

Probably better to ask in the javascript forum for that part though.
 
Request the form values and assign to variables then put this value in form "value=" attribute:

<%
lname = Request.Form("lname")
fname = Request.Form("fname")
%>


<form action="postback.asp" method="POST>
Last Name: <input name="lname" value="<%=lname%>">
First Name : <input name="fname"> value="<%=fname%>">
<input type="submit" name="submit" value="Submit">
 
Why are you trying to do this?

I only ask because it seems like maybe you are trying to work around a different problem. If so then perhaps we can address the core issue instead of just helping with this work-around.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top