Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/03/2003, 21:26
DJELVASCO
 
Fecha de Ingreso: febrero-2003
Ubicación: Argentina
Mensajes: 40
Antigüedad: 22 años, 2 meses
Puntos: 0
bueno voy a probar eso ,.....

lo voy a probar mañana a ver si me dá , pero por si querés mirarlo te paso los códigos q el ultradev me hace y si querés acotar algo con lo q me dijiste todo bien!!

para la página donde tengo el menú y q se comunica con rubro.asp tengo esto:


<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/proveedores.asp" -->
<%
set Rubros = Server.CreateObject("ADODB.Recordset")
Rubros.ActiveConnection = MM_proveedores_STRING
Rubros.Source = "SELECT * FROM RUBROS"
Rubros.CursorType = 0
Rubros.CursorLocation = 2
Rubros.LockType = 3
Rubros.Open()
Rubros_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
Rubros_numRows = Rubros_numRows + Repeat1__numRows
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_kee pNone=""

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
EN EL BODYYYYY

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%
While ((Repeat1__numRows <> 0) AND (NOT Rubros.EOF))
%>
<tr>
<td width="17" height="18"></td>
<td width="90" valign="top">
<div align="left"><a href="rubro.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "id=" & Rubros.Fields.Item("RUBRO").Value %>" class="botones"><font face="Times New Roman, Times, serif"><b><%=(Rubros.Fields.Item("RUBRO").Value)%> </b></font></a></div>
</td>
<td width="21"></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Rubros.MoveNext()
Wend
%>

Ahora la pág rubro.asp donde quiero poner los registro y la consulta q te dije a la bd haciendo relacion es esta:

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/proveedores.asp" -->
<%
Dim Clientes__MMColParam
Clientes__MMColParam = "1"
if (Request.QueryString("id") <> "") then Clientes__MMColParam = Request.QueryString("id")
%>
<%
set Clientes = Server.CreateObject("ADODB.Recordset")
Clientes.ActiveConnection = MM_proveedores_STRING
Clientes.Source = "SELECT * FROM RUBROS WHERE RUBRO = '" + Replace(Clientes__MMColParam, "'", "''") + "'"
Clientes.CursorType = 0
Clientes.CursorLocation = 2
Clientes.LockType = 3
Clientes.Open()
Clientes_numRows = 1
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = 5
Dim Repeat1__index
Repeat1__index = 0
Rubros_numRows = Rubros_numRows + Repeat1__numRows
%>


bodyyyy
<div align="center"><font color="#FFFF00" face="Arial, Helvetica, sans-serif" size="3"><b><font color="#FFFF00" face="Arial, Helvetica, sans-serif" size="3"><b><font color="#000000"><b><font size="4">
| <%=(Clientes.Fields.Item("RUBRO").Value)%></font>




<%
Clientes.Close()
%>

si queres agregar algo te agradezco!!!!