if (e.Row.RowType == DataControlRowType.DataRow)
        {
            LinkButton d = e.Row.FindControl("btnPublished") as LinkButton;
            Label l = e.Row.FindControl("Label1") as Label;
        
            LinkButton btnCancel = e.Row.FindControl("btnCancelPub") as LinkButton;
            Maticsoft.BLL.PromulgateMemory bll = new Maticsoft.BLL.PromulgateMemory();
            List<Maticsoft.Model.PromulgateMemory> list = bll.GetModelList(string.Format("MemoryId={0}", int.Parse(l.Text)));
            if (bll.ExistsMemory(int.Parse(l.Text)))
            {
                status = list[0].Station.ToString();
                if (list[0].Station.ToString() == "已发布")
                {
                    d.Visible = false;
                    btnCancel.Visible = true; 
                }
             }
        }我想问的是那个d.visible=false; btnCancel.Visible = true; 
怎么没有起到效果呢