locked
Using Angular with asp.net 4.5 Web Forms RRS feed

  • Question

  • User1343581070 posted

    Hi,

             I have been developing web forms applications and would like to know if Angular 7 or 8 can be used alongside web forms. If yes what are the real advantages of using angular in web forms and are there any demos or sample projects to point me in the right direction. 

    Thanks & regards

    Sanjish

    Monday, June 3, 2019 7:56 AM

Answers

All replies

  • User475983607 posted

    I have been developing web forms applications and would like to know if Angular 7 or 8 can be used alongside web forms. If yes what are the real advantages of using angular in web forms and are there any demos or sample projects to point me in the right direction. 

    The short answer is No.   Angular binds the data so you have no reason to use server controls.  

    Monday, June 3, 2019 10:17 AM
  • User839733648 posted

    Hi SANJISH KUMAR,

    As mgebhard has said, it is not encouraged to use server controls with Angular.

    In my opinion, you could build your Angular application using some editor such as Visual Studio Code that is friendly to the Angular CLI.

    Consider not adding Angular to your Web Forms project and instead keeping it separate with its own functionality.

    But it still could communicate with whatever backend (Web API) you have created.

    Besides, if you want to you use .Net along with Angular, I suggest that you could choose to create an .Net Core application.

    References:

    https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/angular?view=aspnetcore-2.2&tabs=visual-studio 

    https://www.c-sharpcorner.com/article/create-an-angular-7-app-with-asp-net-core-2-1/ 

    Best Regards,

    Jenifer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 4, 2019 3:04 AM