Came across an error I haven't had before using ASP .Net so thought I would share this with the world in case someone else had the same problem. After updating a page and copying it to the webserver when I came to look at it again I got this message:
Unable to cast object of type 'ASP.controls_student_ascx' to type 'Controls_Student'
In order to resolve this I had to clear my cache and then it worked fine.