Discussion Locked

Removing Blank Lines in Result C#

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a page written in C# which outputs names and addresses of people I query from a database. If someone does not have a 2nd address etc, the result leaves a blank line. How can I remove this line?

John Doe
1003 NW 62nd

Belleair, Florida 33708
720-876-9876

4 replies

by vhansen86

I'm not sure we are thinking the same? I have 2 address fields. Address1 and Address2. Some people don't have Address2 so it leaves a blank line in the ASP page. I need a function to the effect:

if address2 ISNULL remove blank line

This discussion is closed to new replies.