在gridview的列中输出html如果不想转义,我们知道,只需要加上htmlencode=false就可以了,但是下面这行
string sthml = drv["subject"].ToString() + "<br>创建者:" + drv["emName"].ToString();
e.Row.Attributes.Add("onmouseover", "DivMsg(this,\"" + sthml + "\")");
e.Row.Cells[0].Attributes.Add("onmouseover", "DivMsg(this,\"" + sthml + "\")");
我要在行上或者列的Attributes上加代码,结果是自动转义了,如何不被编码呢?只有这么多分了..