Foros del Web » Programando para Internet » ASP Clásico »

¿Cómo paginar los 100 primeros caracteres de un campo memo?

Estas en el tema de ¿Cómo paginar los 100 primeros caracteres de un campo memo? en el foro de ASP Clásico en Foros del Web. Hola, Me gustaría saber cómo puedo paginar en un documento asp, por ejemplo, los 100 primeros caracteres de un campo memo formado por varios párrafos. ...
  #1 (permalink)  
Antiguo 06/05/2004, 05:59
 
Fecha de Ingreso: octubre-2003
Ubicación: Santander
Mensajes: 236
Antigüedad: 20 años, 6 meses
Puntos: 0
¿Cómo paginar los 100 primeros caracteres de un campo memo?

Hola,

Me gustaría saber cómo puedo paginar en un documento asp, por ejemplo, los 100 primeros caracteres de un campo memo formado por varios párrafos.

La base de datos que uso es acces.

Muchas gracias.
  #2 (permalink)  
Antiguo 06/05/2004, 10:23
Avatar de lexus  
Fecha de Ingreso: enero-2002
Ubicación: Cali - Colombia
Mensajes: 2.234
Antigüedad: 22 años, 3 meses
Puntos: 4
hola,
no te entiendo muy bien con paginar,
pero si lo que intentas hacer es mostrar los primeros 100 caracteres de un campo memo hazlo asi


parrafo = rs("tucampomemo")

If len(parrafo) > 100 then
parrafoarreglado = left(parrafo,100)
end if
<%=parrafoarreglado%>...

espero te sirva.
__________________
Control de Visitantes, Control de Accesos, Minutas digitales, Manejo de Correspondencia
http://www.controldevisitantes.com
  #3 (permalink)  
Antiguo 10/05/2004, 12:47
Avatar de deccweb  
Fecha de Ingreso: febrero-2003
Ubicación: Mataro
Mensajes: 365
Antigüedad: 21 años, 2 meses
Puntos: 0
El codigo donde lo tendria q incluir? el campo donde quiero q se muestren los 100 primeros registros es "mas"

Código PHP:
<%

Set oConn Server.CreateObject ("ADODB.Connection"
Set RS Server.CreateObject ("ADODB.RecordSet"
oConn.Open "Driver={Microsoft Access Driver (*.mdb)}; " "Dbq=" Server.MapPath("Noticias.mdb"

'Conectamos a la conexion a la base de datos. 
sql ="SELECT TOP 5 * FROM Noticias ORDER BY id DESC" 
'
Abrimos la tabla pidiendo todos sus registros
RS.Open sqloConn %> 
<
table width="488" border="1,00" bordercolor="#999999" bgcolor="#FFFFFF">
<%Do While 
not RS.EOF %>
<
tr>
<
td width="88" height="23" valign="middle"> <div align="center">
<%
Response.Write "<IMG SRC="""&RS("imagen")&""">" %>
</
div></td>
<
td width="384"><div align="justify"
<
p> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"
<
strong>
<%
Response.Write "<a href='noticia.asp?id="RS.Fields("id") &"'>"&RS.Fields("titulo")&"</a></b><br><font color=""#696969"">"RS.Fields("mas") &" "
Response.Write "<P>" 
%>
</
strong> </font> </p>
</
div></td>
</
tr>
<%
RS.MoveNext 
Loop 
Cerramos y eliminamos todo

RS.Close 
oConn
.Close 
Set RS 
Nothing 
Set oConn 
Nothing 
%> 
__________________
Calle17.net

edgargranados.es
  #4 (permalink)  
Antiguo 10/05/2004, 13:54
Avatar de tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Si omites el condicional funciona igual, pídele......

left(RS.Fields("mas"),100)
  #5 (permalink)  
Antiguo 10/05/2004, 14:11
 
Fecha de Ingreso: octubre-2003
Ubicación: Santander
Mensajes: 236
Antigüedad: 20 años, 6 meses
Puntos: 0
No entiendo este último

No entiendo este último mensaje. Soy novato, sorry
  #6 (permalink)  
Antiguo 10/05/2004, 15:16
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 2 meses
Puntos: 535
A ver David224... a qué te referís exactamente con paginar los 100 primeros caracteres de un campo memo formado por varios párrafos?

-A obtener de este campo memo los primeros 100 caracteres? (lo que te comenta lexus y tunait)
-A mostrar en una página los primeros 100 caracteres, en la segunda los caracteres del 101 al 200, en la tercera los caracteres del 201 al 300... etc?
-Ninguna de las anteriores, pero voy a ser más explícito

Última edición por AlZuwaga; 10/05/2004 a las 15:20
  #7 (permalink)  
Antiguo 10/05/2004, 15:20
 
Fecha de Ingreso: octubre-2003
Ubicación: Santander
Mensajes: 236
Antigüedad: 20 años, 6 meses
Puntos: 0
Me refería a esto

A obtener de este campo memo los primeros 100 caracteres? (lo que te comenta lexus y tunait)

Pero no tengo mucha idea y he probado los ejemplos "a mi modo" pero no me funcionan, así que si alguien hace una plantilla "para novatos" estaría muy agradecido :)
  #8 (permalink)  
Antiguo 10/05/2004, 15:24
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 2 meses
Puntos: 535
Estemmmm... pero es que ya lexus te dijo cómo hacerlo.
Mejor ponés el código sobre el cual estubiste trabajando
sin resultados y vemos cómo adaptar lo de lexus al tuyo
__________________
...___...
  #9 (permalink)  
Antiguo 10/05/2004, 15:29
 
Fecha de Ingreso: octubre-2003
Ubicación: Santander
Mensajes: 236
Antigüedad: 20 años, 6 meses
Puntos: 0
es clavado al código que ha puesto daccweb. Ese mismo esquema me puede valer.

Muchas gracias, de verdad :)
  #10 (permalink)  
Antiguo 10/05/2004, 15:37
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 2 meses
Puntos: 535
Cita:
Mensaje Original por tunait
Si omites el condicional funciona igual, pídele......

left(RS.Fields("mas"),100)




Código:
Response.Write "<a href='noticia.asp?id="& RS.Fields("id") &"'>"&RS.Fields("titulo")&"</a></b><br><font color=""#696969"">"& left(RS.Fields("mas"),100) &" "

Última edición por AlZuwaga; 10/05/2004 a las 15:40
  #11 (permalink)  
Antiguo 10/05/2004, 15:41
 
Fecha de Ingreso: octubre-2003
Ubicación: Santander
Mensajes: 236
Antigüedad: 20 años, 6 meses
Puntos: 0
GRACIAS!!!!!!
GRACIAS!!!!!!
GRACIAS!!!!!!
GRACIAS!!!!!!
GRACIAS!!!!!

:):):):):):):):):):):):) Muchas gracias a todos por su ayuda. Cuenten conmigo para lo que les pueda ayudar compañeros
:):):):):):):):)
  #12 (permalink)  
Antiguo 25/05/2013, 15:12
 
Fecha de Ingreso: septiembre-2012
Mensajes: 3
Antigüedad: 11 años, 7 meses
Puntos: 0
Regimen mean ed-drugs online no technique

If you look at the map of the in seventh heaven that Americans are the most on the allowance people in Cialis as it is in the U.S. is decidedly developed Cialis representing car-boot sale online, as showily as tons rile Generic Cialis, we will-power secret forth it later. Cialis pills - this is not a offspring mickey finn, but to substitute it so no in unison was expert to, because it is the most effective pain in the neck to rally the potency of erectile dysfunction, sterility treatment. From an authorized vendor has the staff of Tadalafil. [url=http://genericcialis-usa.net/#99914]generic cialis
[/url] You central to support your doctor so that he has written you a medicament with a explicit dosage and method of application. There is an opportunity to purchase in our online dispensary, in that envelop if you require already received counseling and were examined near a specialist. Then you can safely rank Cialis with us as a drug for the benefit of a low-grade asking delivered to your door in the fastest time. Shield Cialis instanter and perks your flavour tomorrow. You can talk with a point of view hours to how Cialis works, but in one meet one's maker is haler to prove and belittle delete unshakeable that such buying Cialis online apothecary in our Like-minded States. Generic fashion is unusually warm-heartedly known in the U.S. as there are bordering on 90% of the corrupt Cialis Generic. The entirety simply Generic Cialis also works as a in britain director at the accredited Cialis, scarcely in our drugstore is cheaper diverse times over the chip and online. Yes, a straws of online pharmacies but not dick can be trusted. You can win Cialis from swindling, gratify be precise! We certain 100% anonymity, precipitate shipping, cheapest cialis online.
  #13 (permalink)  
Antiguo 27/02/2014, 08:34
 
Fecha de Ingreso: septiembre-2012
Mensajes: 3
Antigüedad: 11 años, 7 meses
Puntos: 0
Sequence levitra without prescription

levitra and levitra express
[url=http://genericlevitra-usa.com]generic levitra
[/url] buy levitra uk 99
- generic levitra
  #14 (permalink)  
Antiguo 24/07/2014, 02:24
 
Fecha de Ingreso: septiembre-2012
Mensajes: 3
Antigüedad: 11 años, 7 meses
Puntos: 0
Impound tatty generics no prescription

cialis 5mg daily users browsing this forum
[url=http://cialisgeneric-us.com]generic cialis[/url] purchase cialis in new zealand
- cialis uk buy generic
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:29.