%idproducto=request.QueryString("idproducto")
if idproducto="" then
response.Redirect("producto.asp")
end if
set objproducto=new tbproducto
set ObjDetpro=new TBDetpro
sControl = Objproducto.opentabla
sControl = ObjDetpro.opentabla
ObjDetpro.FiltraxIdProducto(idproducto)
if ObjDetpro.existeregistro then
ObjDetpro.asignacampos
else
'response.Redirect("producto.asp")
end if
ObjProducto.BuscaxIdProducto(idproducto)
if objproducto.existeregistro then
ObjProducto.asignacampos
else
response.Redirect("producto.asp")
end if
%>
|
| |
 |
|
<% if ObjDetpro.rs.recordcount >0 then
ObjDetpro.rs.movefirst%>
|
<%
cc=0
While Not ObjDetpro.Rs.EOF
ObjDetpro.AsignaCampos
TxtIdDet=ObjDetpro.IdProducto
TxtDescripcion=trim(ObjDetpro.Titulo)
TxtImagen=Rutaimg&ObjDetpro.Imagen
cc=cc+1
%>
|
<%
If cc=2 then ' aca le dan la cantidad de columnas que kieres tener
Response.Write(" | ")
cc=0
End If
%>
<%
ObjDetpro.Rs.MoveNext
Wend
%>
<%else%>
No Existen Productos para <%=ObjProducto.Titulo%> |
<%end if%>
|
|
<%
if ObjDetpro.rs.recordcount=0 then%>
No hay Lineas de Productos para <%=ObjProducto.Titulo%> |
<%
else
ObjDetpro.rs.movefirst%>
| |
Líneas de Productos |
<%do while not ObjDetpro.rs.eof
ObjdetPro.AsignaCampos%>
| |
|
<%
registro=registro+1
ObjDetpro.rs.movenext
loop
end if
%>
|
|
|
|
 |
 |
|