Combine information from several .net web form applications

fp2021 21 Reputation points
2021-06-15T13:28:17+00:00

We have several web form applications that were developed using .NET 4.0 framework. There is a need to now have some of the information from several web applications displayed in one common place/application. What would be the best option for this scenario? Should we create a new .NET web application in VS 2019 that pulls existing information via web services or web APIs?

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,249 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,570 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Duane Arnold 3,211 Reputation points
    2021-06-15T15:36:27.28+00:00

    IMHO, you should be using an ASP.NET Core Razor page project that is not unlike using a Web form, because it has a page like code behind file for a given cshtml page, and anyway ASP.NET Webform is legacy technology.

    Web service are legacy technology, and you should also be looking into use ASP.NET Core MVC WebAPI along with EF Core being used behind the WebAPI with the DAO pattern.

    https://javarevisited.blogspot.com/2013/01/data-access-object-dao-design-pattern-java-tutorial-example.html

    The DTO pattern can also be used between the Razor MVC client and WebAPI.

    https://learn.microsoft.com/en-us/aspnet/web-api/overview/data/using-web-api-with-entity-framework/part-5

    https://www.codeproject.com/Articles/1050468/Data-Transfer-Object-Design-Pattern-in-Csharp

    Understand the Models, since a Razor page project uses the MVC pipe line.

    https://deviq.com/terms/kinds-of-models

    https://www.dotnettricks.com/learn/mvc/understanding-viewmodel-in-aspnet-mvc

    An example Razor page solution using WebAPI doing CRUD with EF.

    DM = domain object and VM = view model.

    https://github.com/darnold924/PubCompanyCore3.x

    https://learn.microsoft.com/en-us/archive/msdn-magazine/2016/may/asp-net-writing-clean-code-in-asp-net-core-with-dependency-injection

    https://learn.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/architectural-principles

    https://levelup.gitconnected.com/layers-in-software-architecture-that-every-sofware-architect-should-know-76b2452b9d9a

    HTH

    1 person found this answer helpful.
    0 comments No comments

  2. Yijing Sun-MSFT 7,066 Reputation points
    2021-06-16T02:17:14.507+00:00

    Hi @fp2021 ,
    As far as I think,you could create a new web application to combine multiple web apps. It's convenient for migrating codes. In the new application,you could do separation.
    You could a separate folder for each feature and allow all features to share the same masterpages, usercontrols, and configuration file - without having to do anything special.
    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments