protected void reportpathset()
{
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
for(int j=0;j<this.GridView1.Rows[i].Cells.Count;j++)
{
foreach (Control ctl in this.GridView1.Rows[i].Cells[j].Controls)
{
if (ctl.GetType().Name == "HyperLink")
{
HyperLink hl = new HyperLink();
hl = (HyperLink)ctl;
if (hl.NavigateUrl == "Report/empty.doc")
{
hl.Text = "无报告";
hl.NavigateUrl = "#";
hl.CssClass = "";
}
}
}
}
}
}
评论