Last post Dec 26, 2019 02:53 AM by Rena Ni
Dec 25, 2019 12:18 PM|EngSH|LINK
I am learning .Net core mvc, On the documentation i can see Razor Pages & Blazor sections.
Are they the same or different? any difference?
which one should i use?
Dec 25, 2019 02:51 PM|maherjendoubi|LINK
Blazor is the next step (and hopefully successor) that will allow the same server-side functionality as Razor but will integrate client-side logic using
Dec 26, 2019 02:53 AM|Rena Ni|LINK
As Maher said,Razor Pages is a web framework, just like the MVC framework. When you use Razor Pages, you create pages that employ Razor syntax and C#, just like Blazor, which explains why they seem so similar, at first glance.
However, Razor Pages are created on the server only, and the Html Content is output (rendered) and pushed to users' browser. Their architecture is different, and you need to learn a range of classes in order to program in either of them.