views:

60

answers:

1

I have a multiline textbox whose .Text property get saved in an SQL 2008 DB. When I submit the textbox, I loose the returns. How do I handle this?

I've used Enviroment.Newline() to do some html conversion stuff, but I've never ran into this specific problem.

Edit: Nevermind, it was working just fine, but I was replacing "\n" incorrectly. Stupid mistake. I have to convert the "\n" to <p> tags. I've done this before, but if anybody wants to answer, I'll mark their answer as correct.

+1  A: 

You've solved your own question already, which is great.

But I would comment on one thing: You say you're replacing \n with <p> but the way it sounds like you're doing it, I'd suggest replacing with <br> instead.

Cheers. -S.

Spudley