您的位置:首页 > 其它

复制GridView单元格内容到剪贴板

2008-11-17 10:41 204 查看
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
foreach (TableCell cell in e.Row.Cells)
{
cell.Attributes["onclick"] = "window.clipboardData.setData('Text', this.innerText);";

}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: