protected void repFileReName_ItemCommand(object sender, RepeaterCommandEventArgs e) { if (e.CommandName == "Del") { string LabelName = e.CommandArgument.ToString(); bll.DelLabelXML(LabelName); Response.Redirect("LabelManage.aspx"); } if (e.CommandName == "Copy") { string LabelName = e.CommandArgument.ToString(); M_Label newlbl = bll.GetLabelXML(LabelName); newlbl.LableName = newlbl.LableName + DataSecurity.RandomNum(4); newlbl.LabelID = 0; bll.AddLabelXML(newlbl); Response.Redirect("LabelManage.aspx"); } if (e.CommandName == "Download") { string LabelName = e.CommandArgument.ToString(); M_Label newlbl = bll.GetLabelXML(LabelName); SafeSC.DownFile(B_Label.GetLabelVPath(newlbl), newlbl.LableName + ".lable"); } }