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;
怎么没有起到效果呢
{
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;
怎么没有起到效果呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货