根据不同文字形成链接么?可以用<a>标签
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].Text = "<a href='info.aspx?ID=" + e.Row.Cells[0].Text + "' target='_blank'>" + e.Row.Cells[0].Text + "</a>"
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)