Gazing into my crystal ball I observed "JimO"
<jo***********@XXXearthlink.netwriting in
news:yL*******************@newsread1.news.pas.eart hlink.net:
I'm trying to write an ASP interface that mimiks a .Net datagrid
control. I'm having a problem when I'm in the middle of an Edit,
Update, or a New Record. If the user hits the wrong button, the
program grabs the values in the textboxes using the request.form() and
then redisplays them in the textboxes when the records table gets
written back out to the page. This works fine as long as the form is
submitted. If it's just a page refresh (F5), the program doesn't get
the latest changes to the textboxes and displays either a blank or
whatever was in there the last time the form was submitted. Anybody
got any ideas?
Jim
dim defaultvalues, defarr, iscompleted, required, name
defaultvalues = "Your name, your address,
yo*@example.com"
defarr = split(defvaultvalues,", ")
if request.servervariables("request_method") = "POST" then
if request.form("name") = "Your name" then
required = "name"
end if
if required <"" then
'do not complete processing
else
'complete processing
iscompleted = true
name = defarr(0)
end if
else
name = defarr(0)
end if
%>
<form method="post" action="<%=request.servervariables
("script_name")%>">
<label for="name" id="name1">Name </label<input type="text"
name="name" id="name" value="<%=name%>" onfocus="if(this.value == '<%
=name%>') this.value = '';"><br>
.....
<input type="submit" value="Submit">
</form>
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share