I have Changed the cancelAppointment.aspx.cs file according to cancelledappointment class. and has merge the code of ronaldo.