here it is below:
Main Topics
Browse All TopicsHi,
I am pretty new to ASP programming but am working on a project that pulls simple data from a MSSQL server (2000) and places it into a ASP page. I am trying to build it into tables so it is nicely formatted and tho the code is not that great I am about 50% the way there. My issue is, and the screen shot will show that when it builds the HTML table if there is null data in the results it fails to build the entire table and shows as an empty void.
I need some help to refine how the formatting takes place to display the results a little better then it is now.
Thanks!
Code & Screen shot attached, the white boxes are the confidential info I had to cut out. Also Circled in RED the areas showing the missing spots.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
For the area's that do not have data, you would do something like this:
<%if rs("recordname")="none" then%>
empty data field here
<%else%>
<%=rs("recordname")%>
<%end if%>
No this is assuming that you have a default value for the entries.
I trust entering default values over using a NULL any time.
I just feel more comfortable doing it this way.
Carrzkiss
Similar to carrzkiss's anwser, but a little cleaner and easier to implement. Add the attached function to your ASP code.
Then, when you go to display a field from your table call it like this:
<%=showCell(rs("record
That way, a non-breaking space is entered if you have null/empty data. With an nbsp in the cell, the cell is rendered because it has content.
OK, I see you're not making shortcut calls but building the table programmatically, so you'd take your line that says:
Response.write "<th>" & Recordset("Sourcecode") & " "
And replace it with
Response.write "<th>" & showCell(Recordset("Source
and change all the other lines to a similar thing.
I agree with carrzkiss, you'd be better off moving the actual table into the HTML section of the page and not programmatically build it. That way you can use your page editor to adjust your table. Then fill each cell with a call to the recordset. The one exception is that I'd move the showCell function above the Do While NOT line...
Business Accounts
Answer for Membership
by: smyers051972Posted on 2009-11-05 at 11:57:58ID: 25753269
Cant attach code first try here it is