protected void Bind()
{
CompInfo ci = (CompInfo)Session["coi"];
Complinkappl cla = new Complinkappl();
IList<ComplinkapplInfo> iclai = cla.Selsonly(" cpacompid = " + ci.Compid.ToString() + " order by cpadate desc");
this.GridView1.DataSource = iclai;
this.GridView1.DataBind();
foreach (GridViewRow row in GridView1.Rows)
{
LinkButton lb = row.Cells[3].FindControl("Lbtnup") as LinkButton;
Literal lt = row.Cells[3].FindControl("Lt") as Literal;
if (lt.Text != "1")
{
lb.Visible = false;
}
else
{
lb.Visible = true;
}
}
}