-4

I started working with ASP.Net and I'm wondering: Are WebApplications with aspx Pages (like SharePoint) always based on Web Forms?

Because Web Forms are obsolet I've created a little MVC test project. It does not contain any aspx pages but cshtml pages.

Best Regards

TheAnonymousModeIT
  • 777
  • 1
  • 6
  • 18

1 Answers1

1

ASPX can be used with MVC instead of Razor (cshtml) although it is not common. So no, being ASPX doesn't automatically make it Web Forms, though the majority of time it will be.

MVC has the concept of pluggable View Engines. Note that just because you can use the ASPX extension does not mean that all the controls that you can use in Web Forms will be available in MVC. Everything still follows the MVC lifecycle, not Web Forms.

Note that having .cshtml doesn't necessarily mean you're using MVC. It could be Web Pages, Razor PDF or some other framework.

Community
  • 1
  • 1
mason
  • 31,774
  • 10
  • 77
  • 121