The error message is pretty clear:
ASP.studentdetails_aspx' does not contain a definition for 'DropDownList1_SelectedIndexChanged' and no extension method 'DropDownList1_SelectedIndexChanged' accepting a first argument of type 'ASP.studentdetails_aspx' could be found
Check your code behind file - you do not have the method defined (you may have removed the method, or changed it's name accidentally)