Problem with Multiline Textbox

Results 1 to 2 of 2

Thread: Problem with Multiline Textbox

  1. #1
    Join Date
    Dec 1969

    Default Problem with Multiline Textbox

    Hi,<BR><BR>I have a webform with a multiline TextBox. So users can enter text here with multiple &#039;newlines&#039;. The value (lets call it &#039;Reaction&#039;) of the TextBox is saved into the database.<BR><BR>Now I want a datagrid that gives an overview of all the &#039;Reactions&#039; with the newlines. <BR><BR>What I&#039;m getting is: <BR>"This is an example of what I want:- all the enters must be respected- not a full block of text",<BR><BR>but this is what I really want:<BR>"This is an example of what I want:<BR>- all the enters must be respected<BR>- not a full block of text"<BR><BR>Is there any way to achieve this?<BR><BR>Many thanks!<BR><BR>Sarah

  2. #2
    Join Date
    Dec 1969

    Default RE: Problem with Multiline Textbox

    HTML line breaks are no the same as &#039;proper&#039; linebreaks.<BR><BR>do a view source and you&#039;ll see that your linebreaks are preserved, but theat the browser is ignoring them<BR><BR>1 Replace(string, vbcrlf, "&#060;br /&#062;")<BR>2 use a rich-text textbox such as : which will give you HTML linebreaks instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts