on a m1 Mac you should use visual studio 2022 as its been ported to run native.
you will need to talk to your instructor. .aspx pages are from the old .net framework which was not ported to the Mac. the Mac can only run asp.net core (net 6/7) applications. the closest to .aspx is the new core razor pages.
I believe asp.net 4.8 has been port to windows arm. If you must create asp.net 4.8 application you will need parallels for Mac. then install windows 11, and visual studio community for arm.
note: due to its speed, Mac arm with parallels is the standard platform for developing windows apps that target arm.