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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reset form

Status
Not open for further replies.

tziviak2

MIS
Jul 20, 2004
53
US
how do I reset a form-without a user clicking on a button-and I want to put the code-before the form is even loaded.
 
doesn't make much sense on why you would need to.

are you just making sure some values are not loaded from a cached instance?

if so set the cache level in the page to 0 and that will do it

e.g.
Code:
<%
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
but onpnt that will effectively stop the "Back" button from working (ie it will say page expired blah blah blah...)?

Known is handfull, Unknown is worldfull
 
yeah and I'm still confused on what is wanted. if they never clicked a button how is the form collection ever there in the first place. hmmm..

or maybe they're just not allowed to see what they submit [lol]

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top