problem when I save the text of an htmlEditor ?
- by ahmed
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.