The model code of conduct came into force in all 309 urban local bodies with the declaration of elections.