In 1838 the London and South Western Railway Company (L&SWR) built a railway from Southampton to Winchester. It was decided to build a station near the little village of Barton. This railway station was originally named Bishopstoke Junction. In 1868 the villages of Barton and Eastley were combined into one parish. A parish church, the Church of the Resurrection, was built in the same year, at a cost of £2,300. A local noted author of many novels, Charlotte Yonge, donated £500 towards the building of the church. She was rewarded by being given the privilege to choose a name for the 'new' parish; either Barton or Eastly. She chose Eastly, but with a new modern spelling; Eastleigh. In 1891 the L&SWR Carriage and Wagon Works from Nine Elms in London were transferred to Eastleigh. This was followed by the Nine Elms Locomotive Works which were moved there in 1909.