Opposition parties on Tuesday attacked the government over the rise in prices of cooking gas, petrol and diesel, alleging it had held back for the last few months only because of elections and had once again ''inflicted pain'' on the common man as the assembly polls were over.