コード例 #1
0
        protected void grdAttachments_ItemCommand(object source, DataGridCommandEventArgs e)
        {
            if (e.CommandName == "Delete")
            {
                int fileId = (int)grdAttachments.DataKeys[e.Item.ItemIndex];
                int cnt    = PE_DAL.DeleteAttachmentByFileID(fileId);

                BindAttachments();
            }
        }