Este es el codigo de la pagina
Código:
aki es donde kiero pasarle el valor del registro<%
Response.Buffer = True
' Connection String
Dim ID
ID = Request("id")
If Len(ID) < 1 Then
ID = 7
End If
SQLtxt = "SELECT * FROM familias WHERE cod_familia =" & ID &""%>
<%set rs = CreateObject("ADODB.Recordset")
rs.CursorType = adOpenstatic %>
<%rs.Open SQLtxt, "DSN=bromur"
%>
<table border=0 bordercolor="#ff00ff" cellpading=0 cellspacing=0 width="100%" height="100%">
<tr align="center">
<td align="center">
<table align="center"><tr><td>
<%
Response.Buffer = True
If Not rs.EOF Then
Response.Write "<tr><td><u><b>Cod Familia</b></u>"
Response.Write "<td><u><b>Descripcion</b></u>"
Response.Write "</td></tr>"
contador=0
Do While contador < rs.pagesize and NOT rs.EOF
Response.Write "<tr><td >"
Response.Write rs("cod_familia") & "</td><td>"
Response.Write rs("desc_familia")& "</td><td>"
Response.Write "</td></tr>"
rs.MoveNext
contador=contador+1
Loop
Else
Response.Write "No se encontraron archivos"
End If
%>
</td></tr></table>
</td>
</tr>
<tr><td> </td></tr>
<tr><td colspan="10">
<table align="center" border=0 cellspacing=0 cellpadding=0>
<form name="familia" action="updatefa.asp" method=post>
<tr>
<td width=80>Familia: </td>
<td>
<input type="Hidden" name="codfa" value="<%= rs ("cod_familia") %>">
<input type="text" name="familia1" size="10" maxlength="6" value='' style="width:134"></td>
</tr>
<tr>
<td width=80>Descripcion: </td>
<td><input type="text" name="descripcion1" size="10" maxlength="25" value='' style="width:134"></td>
</tr>
<tr>
<td></td>
<td ><input accesskey="s" type=submit style="width:134; background-color: #F3F3F3;" value=' Actualizar Familia '></td>
</tr>
<% 'Limpiamos y cerramos.
rs.CLOSE
SET rs=NOTHING
'oConn.close
'SET oConn=NOTHING
'End If
%>
</td>
</tr>
</form>
Código:
çpero no me funciona asi no se si es error de sintaxis o k???<input type="Hidden" name="codfa" value="<%= rs ("cod_familia") %>">
Si lo pongo asi me da el error
El valor de BOF o EOF es True, o el actual registro se eliminó; la operación solicitada requiere un registro actual.
/bromur/actufa.asp
Gracias

