PDA

View Full Version : very easy questions (really!) but the solution?


darktown
10-31-2004, 05:20 AM
I got a textarea.
I if fill in :


test test fsdfd fsdfds
whatever
haha

i see : test test fsdfd fsdfds whatever haha

In other words i don't see the places where i put an enter. How to show them and let the inputted data see how they were inputted (with the ENTER)

thx
(something with ascii values?? :s)

darktown
10-31-2004, 07:13 AM
Message.Replace("\n", "<br/>")
Message.Replace(vbCrLf, "<br/>")


none of these works.
How to replace an 'enter' in asp.net?

Any ideas?

darktown
10-31-2004, 07:20 AM
I am stupid.

I found the solution. God! i am tired, maybe i should take a break.

Sorry to flood the forum like this, i apologize. I recently discovered that you made a 'asp.net' forum.

Sorry again to bother you. Next time i'll try harder and come with 'real' problems.

afterburn
10-31-2004, 10:19 AM
Originally posted by darktown

Message.Replace("\n", "<br/>")





the "\n" is a C based language structure... vb.net will have to use vbCr,VbCrLf,vbLf or VbNewLine