I've found out that they're attracted to damp compost, and that the maggots cause alot of damage to the tender roots of seedlings (although well established plants should be ok).
Is there a cheap way of eradicating these pests? I've looked around and noticed the high costs of some products, i.e. Gnat off is about £20 per 250ml

Your suggestions please...