Jul
24
2007

Printtable ASP

Esta función ya os la presenté, pero la he mejorado para que con muchos registros vaya mas rápido, gracias al getString :D

function printtable(sql)’se le pasa un string sql, e imprime la tabla
if not rs.eof then
response.write “<table align=center border=1><tr>”
for i = 0 to rs.fields.Count – 1
response.write “<th>”
response.write rs.fields(i).name
response.write “</th>”
next
response.write “</tr>”

response.Write
rs.GetString(,,”</td><td>”,”</td></tr><tr>

<td>”,”&nbsp;”)

response.write “</table>”
end if
 end function

Mañana una para imprimir en XML, la estoy acabando :D

También te puede interesar:

  1. PrinttableXML ASP
  2. Funciones útiles para ASP
  3. La mejor función de ASP
  4. Depurando ASP
  5. Object Moved – Asp

Compartir:
  • Meneame
  • Facebook
  • Twitter
  • Bitacoras.com
  • Live
  • del.icio.us
  • BarraPunto
  • Digg
  • Netvibes
  • Google Bookmarks
  • Wikio
  • StumbleUpon
  • MySpace
  • Turn this article into a PDF!
  • Print this article!
  • E-mail this story to a friend!
Escrito por deambulando en: ASP, Programación | | Subir

No hay comentarios »

RSS feed para los comentarios de este post. TrackBack URL


Comentar

Deambulando.com 2006-2009 by Chema | LSSI | Subir

Deja un comentario ya! Ir Abajo Ir Arriba