General discussion

Locked

Removing Blank Lines in Result C#

By vhansen86 ·
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

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by JimKlallsoo In reply to Removing Blank Lines in R ...

is exporting your databse into excel an option prior to running?

If so have a look at this it is similar to what you are tryin to achieve using comma seperated files and excel

http://techrepublic.com.com/5208-6251-0.html?forumID=52&threadID=126316&start=0&tag=search

Collapse -

by vhansen86 In reply to

Poster rated this answer.

Collapse -

by vhansen86 In reply to Removing Blank Lines in R ...

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

Collapse -

by vhansen86 In reply to Removing Blank Lines in R ...

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums