使用ckeditor将数据插入数据库,如<strong>krishna<br /> <br /> <em>hyderabad</em></strong>
。但是当在gridview中显示数据时,它再次带有html标签,我希望它应该在gridview中带有html标签,itemdescription列有标签,我是由fckeditor定制的。
<asp:GridView ID="gvChallan" runat="server" AutoGenerateColumns="true">
</asp:GridView>
背后的代码
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["kernelCS"].ConnectionString)
;
SqlCommand cmd = new SqlCommand("select itemsdescription,quantity,totalboxes from tbl_DeliveryChallan",con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
gvChallan.DataSource = ds;
gvChallan.DataBind();
}
}