protected void DelReplay(object sender,System.EventArgs e) { BBSClass bbsclass = new BBSClass(); BBSReplay replay = new BBSReplay(); replay.ReplayId = Int32.Parse(((LinkButton)sender).CommandArgument.ToString()); replay.ItemID = itemid; try { replay.DelAttachment(Server.MapPath(".")+"\\Attachment\\"); bbsclass.DelReplay(replay); BindData(); Content.Value = ""; } catch(Exception ex) { UDS.Components.Error.Log(ex.ToString()); Server.Transfer("../../Error.aspx"); } }