problem when I save the text of an htmlEditor ?

Posted by ahmed on Stack Overflow See other posts from Stack Overflow or by ahmed
Published on 2010-04-28T08:00:34Z Indexed on 2010/04/28 8:03 UTC
Read the original article Hit count: 351

Filed under:
|
|

Hello guys , I have a problem when I save the content of a htmlEditor it takes the first line of the message. For example I enter

text text text 
text text text 

After entering the text when i retrieve it I just get the first line of the message .

Send message code

HtmlEdit1.Lines.Add(" <br />")
    HtmlEdit1.Lines.Add(" <br />")
    html_txt = ""
    For I = 0 To HtmlEdit1.Lines.Count - 1
        html_txt = html_txt + HtmlEdit1.Lines(I).ToString()
    Next
    mydt = DateTime.Now

Then inserting the record in SQL

insert into MESSAGES (SRNO, ID, subject)values ( @P1, @P2, @P3)

Finally updating the grid.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about sql