我在后台使用fckeditor 添加内容,,在前台读数据时显示了全是html标签请问如何去掉html标签呢。

解决方案 »

  1.   

     protected void gvService_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int row = Convert.ToInt32(e.CommandArgument);
            if(e.CommandName=="disContent")
            {
                lblservice.Text = gvService.Rows[row].Cells[1].Text;
            }
        }
      

  2.   

    Server.HtmlDecode
    http://topic.csdn.net/u/20091014/22/6a1956a1-dd4a-42a2-a366-e053de13a5d9.html
      

  3.   

    你应该设置一下fckedit的输出属性,是html模式还是文本模式,我记得是在fckedit控件属性里有。
      

  4.   

    Fckeditor有设置显示的样式的,设置下就行了呀
      

  5.   

    Server.HtmlDecode 
    转码