Typically, ASMX Web Service or generic handler (ashx file) is used to create web services in ASP.NET Web Forms.You can also host WCF.
It depends on the Web Forms and the version of Visual Studio you are using, but is it not acceptable to use MVC or Web API only for the API?
For example, VS2013 or later makes it easy to co-exist Web Forms/Web API/MVC in a single project, so it is also possible to implement Web Forms with screens and Web APIs.
© 2024 OneMinuteCode. All rights reserved.