devxlogo

Displaying a Recordset in a Table with a Border

Displaying a Recordset in a Table with a Border

When displaying a recordset in a table with a border, if there is no data returned for a cell, the borders will not show up around that cell. To alleviate this, hard code a space (nbsp;) after each field so if no data is returned, it will still show the borders. Here is an example:

 "Response.Write "
"rs.MoveNextLoop%>
" & rs("Column1") & "nbsp;" & rs("Column2") & "nbsp;

devx-admin

Share the Post: