日期:2014-05-16 浏览次数:20463 次
try
{
int planeId = Convert.ToInt32(dlPlaneClass.DataKeys[e.Item.ItemIndex]);//获得要删除项的id
Tb_ling linelist = Tb_lingManager.Instance.GetModelTb_lingByWhere("id='" + planeId + "'");
if (linelist.Beione=="1".ToString())
{
linelist.Beione = "0".ToString();
for(int i=0;i<dlPlaneClass.Items.Count;i++)
{
LinkButton lkbtn=(LinkButton)dlPlaneClass.Items[i].FindControl("btndel");
lkbtn.Text = "未审核".ToString();
}
}else{
linelist.Beione = "1".ToString();
for (int i = 0; i < dlPlaneClass.Items.Count; i++)
{
LinkButton lkbtn = (LinkButton)dlPlaneClass.Items[i].FindControl("btndel");
lkbtn.Text = "审核".ToString();
}
}
linelist.Content = linelist.Content.ToString();
linelist.Beiyong = linelist.Beiyong.ToString();
&nbs