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.
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.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
85 Points
299 Posts
Using Angular with asp.net 4.5 Web Forms
Jun 03, 2019 07:56 AM|SANJISH KUMAR|LINK
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
All-Star
53131 Points
23681 Posts
Re: Using Angular with asp.net 4.5 Web Forms
Jun 03, 2019 10:17 AM|mgebhard|LINK
The short answer is No. Angular binds the data so you have no reason to use server controls.
Contributor
2150 Points
705 Posts
Re: Using Angular with asp.net 4.5 Web Forms
Jun 04, 2019 03:04 AM|Jenifer Jiang|LINK
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
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.