[問題] ASP.NET存到資料庫會變成HTML碼
各位版大
我遇到一個搞了我很久的問題
我現在有用FCKeditor的控制項
我想要用把FCKeditor.Value這一個字串存進資料庫
但存到資料庫後會變成HTML的形式
因為我還要把這一個資料表叫出來分享
這樣感覺很醜
try
{
SqlDataSource2.InsertParameters["FCK_id"].DefaultValue =
Label2.Text;
SqlDataSource2.InsertParameters["FCK_content"].DefaultValue =
FCKeditor1.Value;
SqlDataSource2.Insert();
GridView2.DataBind();
Label3.Text = "新增成功";
FCKeditor1.Value = "";
}
catch (Exception ex)
{
Label3.Text = "資料庫寫入發生錯誤:" + ex.Message;
}
以上是我新增的程式碼
謝謝各位~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.175.223
推
08/04 17:06, , 1F
08/04 17:06, 1F
→
08/04 17:06, , 2F
08/04 17:06, 2F