Ok, it now works. In order to rename the class, I had to "Go to definition" and change it in the code.
Now, there are two things I don't understand. And, I guess many have probably sent suggestions to Microsoft. The first one is why changing the aspx file not synchronized with all that. The second is why we cannot rename from right click on the class and have to go in the code.