GridView输出HTML标记

     字段包含html标记不希望以标记显示,可以这样:

    protected void GV_logs_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Cells[6].Text = Server.HtmlDecode(e.Row.Cells[6].Text);
        }
    }

Permalink | Comments (0) | Hits: 262 | Time: 16:32:22
实现iFrame自适应高度
页面排版的16条规则
All Comments

 No Data Now...

Post Your Comment
^ ^

Top