Hello,
Is it possible, and how - I created a form control on an HTML page that submits to an asp page on my server, the asp queries an access database, and properly return the average of a single column; however, this result is loaded into it's own window. How can I have the result displayed directly on a form control (text) next to the submit button.
see below for code snippets:
HTML:
<form method="get" action="get_avg.asp">
<input type="text" name="avg" disabled>
<input type="submit" name="sub">
</form>
ASP:
set rs = Server.CreateObject("ADODB.recordset"
rs.Open "Select AVG(score) from average", conn
do until rs.EOF
for each x in rs.Fields
Response.Write(x.value)
next
Response.Write("<br />"
rs.MoveNext
loop
Finally, is it possible to have the ASP page display to the HTML form control the results from the query on 'onload', thereby bypassing the need for the submit control.
Thanks in advance,
James S.
Is it possible, and how - I created a form control on an HTML page that submits to an asp page on my server, the asp queries an access database, and properly return the average of a single column; however, this result is loaded into it's own window. How can I have the result displayed directly on a form control (text) next to the submit button.
see below for code snippets:
HTML:
<form method="get" action="get_avg.asp">
<input type="text" name="avg" disabled>
<input type="submit" name="sub">
</form>
ASP:
set rs = Server.CreateObject("ADODB.recordset"
rs.Open "Select AVG(score) from average", conn
do until rs.EOF
for each x in rs.Fields
Response.Write(x.value)
next
Response.Write("<br />"
rs.MoveNext
loop
Finally, is it possible to have the ASP page display to the HTML form control the results from the query on 'onload', thereby bypassing the need for the submit control.
Thanks in advance,
James S.