The Karnataka High Court on Friday urged the Parliament and State Legislatures to make every effort to enact a Uniform Civil Code (UCC) emphasizing that such legislation is essential to fully realize the ideals outlined in the Preamble of the Constitution of India.