I have a multiline textbox "Notes".
It contains the text:
"This is a line
And another line is here
And another one here"
I want to replace the CrLf with another character, but somehow asp.net doesnt see the Crlf
Now, I see two CrLf in the above text. But when I call Notes.IndexOf(vbCrLf) I get -1
please mark answers as 'Answered' and post back solutions when you figure stuff out that isnt in the post already.
![]() |
0 |
![]() |
Try the text property -- Notes.Text.IndexOf
Please Mark As Answer posts that helped you.
"If we learn from our mistakes, I should be brilliant by now."
MCTS - .NET Framework 2.0: Web Applications
![]() |
0 |
![]() |
My bad, I already tried that as well :)
please mark answers as 'Answered' and post back solutions when you figure stuff out that isnt in the post already.
![]() |
0 |
![]() |
Put a Break Point and check whether it contains, vbCrLf or ..............
We All move to our original place.
Don't forget.
Imran Baloch
![]() |
0 |
![]() |
Check for the new line character "\n"
![]() |
0 |
![]() |
try
replace(str,vbcrlf," ")
replace(str,vbcr," ")
replace(str,vblf," ")
![]() |
0 |
![]() |