in the case of "soft" wrapping, "Text is displayed with wordwrapping and submitted without carriage returns and line feeds", seehttp://msdn.microsoft.com/workshop/author/dhtml/reference/properties/wrap.asp?frame=true

解决方案 »

  1.   

    <TEXTAREA wrap="soft" id="text1" rows="3" cols="20"></TEXTAREA>
    往后台提交时不用转换,不会包含软回车的内容。
      

  2.   

    Abac(~~),可是不转换的话,我就没办法存入数据库,再从数据库中取出显示为输入的格式就好论坛一样啊
      

  3.   

    在存储前将TEXTAREA 中的内容中的回车,tab等符换成如:\t  ,\br这样的形式就行了
      

  4.   

    楼上哥哥,你给我换一下  tab换成如:\t
      

  5.   

    use this function
    <%
    Function coder(str)
     Dim result,L,i
     If IsNull(str) Then : coder="" : Exit Function : End If
     L=Len(str) : result=""
    For i = 1 to L
      select case mid(str,i,1)
    case "<"     : result=result+"<"
    case ">"     : result=result+">"
    case chr(34) : result=result+"""
    case "&"     : result=result+"&"
    case chr(13) : result=result+"<br/>"
    case chr(9)  : result=result+"    "
    case chr(32) : result=result+" "
    case else    : result=result+mid(str,i,1)
      end select
    Next
     coder=result
    End Function %>
    or you can use "textarea",like here
      

  6.   

    Abac(~~),可是不转换的话,我就没办法存入数据库,再从数据库中取出显示为输入的格式就好论坛一样啊
    存入数据库后 这样读取
      Private Function TransferString(ByVal str As String) As String            Str = Str.Replace("<", "&lt;")
                Str = Str.Replace(">", "&gt;")
                Str = Str.Replace("'", "''")
                Str = Str.Replace(" ", "&nbsp;")
                Str = Str.Replace("\n", "<br>")
                Str = Str.Replace("\r\n", "<br>")
                Str = Str.Trim()
                Return str
            End Function
    private string formatString(string str)
    {
    str=str.Replace(" ","&nbsp;");//处理空格
    str=str.Replace("<","&lt;");//处理小于号
    str=str.Replace(">","&gt;");//处理大于号
    str=str.Replace("\n","<br/>");//处理换行
    return str;
    }