I have a problem about inserting HTML data into SQL Server. here are the details:
this is my stored procedure;
@articleID int,
@articleBody nvarchar(max)
AS
UPDATE v2_Articles SET articleBody = @articleBody WHERE articleID = @articleID
and this is my asp code for inserting data;
x_articleBody = Replace(Replace(Request.Form("x_articleBody"), CHR(34), """"), "'", """")
Connection.Open(ConnStr)
Connection.Execute("EXEC InsertBody @articleID = " & aID & ", _
@articleBody = '" & x_articleBody & "'")
Connection.Close()
and this is my data for insert;
<font> TEXT TEXT TEXT TEXT</font>
So, problem is: when I try this, data saving until
it means after the process sql table is changing like;
<font> TEXT TEXT
Is there any idea about that?
ps. I'm using nicedit text editor for generating html data.