since it is really a classic asp question. but I'm both places so will give it a shot but there are 150+ classic coders there who may help you...
Do you have a URL so we can see output in a browser? If I could look at the output HTML in browser, i.e. "view source" I could nail the answer in a second.