Simulador (Cuando presiona el botón "ejecutar el programa"
se graban todos los cuadros de texto y se ejecuta el primero de la lista
mostrando en una página el resultado)
Problema:
<%option explicit%>
<html>
<head>
<title>problema</title>
</head>
<body>
<%
dim conexion
set conexion = Server.CreateObject("ADODB.Connection")
conexion.ConnectionString = "Provider=SQLOLEDB.1;" & _
"Data Source=.;" & _
"Integrated Security=SSPI;" & _
"Persist Security Info=False;" & _
"Initial Catalog=wi630629_aspya"
conexion.Open
dim registros
set registros = Server.CreateObject("ADODB.RecordSet")
registros.open "select descripcion,precio from articulos",conexion
response.write("<table border=""1"">")
response.write("<tr><th>Descripción</th><th>Precio</th></tr>")
do while not registros.eof
response.write("<tr>")
response.write("<td>")
response.write(registros("descripcion"))
response.write("</td>")
response.write("<td>")
response.write(registros("precio"))
response.write("</td>")
response.write("</tr>")
registros.movenext
loop
response.write("</table>")
conexion.close
%>
</body>
</html>