Using EOL Character
-
Greetings, If this question has already been asked, and I just wasn't able to find it in the search please direct me to the appropriate post. I'm trying to figure out how to keep the returns, or EOL characters, that are entered into a text box. Just like how i hit enter in between 'Greetings' and my message. Right now if i just make a standard text box in my asp.net page, and i make it multiline and i enter 3 lines of text when i output it to a label it will just show up as a single line all scrunched together. What I'm assuming is that I have to do a find replace for the end of line character, which i have no idea how to do. --Peter
-
Greetings, If this question has already been asked, and I just wasn't able to find it in the search please direct me to the appropriate post. I'm trying to figure out how to keep the returns, or EOL characters, that are entered into a text box. Just like how i hit enter in between 'Greetings' and my message. Right now if i just make a standard text box in my asp.net page, and i make it multiline and i enter 3 lines of text when i output it to a label it will just show up as a single line all scrunched together. What I'm assuming is that I have to do a find replace for the end of line character, which i have no idea how to do. --Peter
-
I think you have to use
Server.URLEncode(textbox1.text)
and thenServer.URLDecode(textbox1.tex)
/jasonYou will probably have to convert the EOL char into "
" just before you pass the text through Server.URLEncode() So, you would probably want to search for '%0D' OR '%0A' and replace them with "
" HTH! Chris