That's either the battery (try a new one) or the electronics inside the laptop (try another laptop or see if repair is cheaper). How old is the laptop, how old is the battery?
Kees
I have a laptop Acer Aspire which when i connect it to the power, it fails to charge.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic