4 ms·
I hate asp.net webforms as much as the next guy, but this is the same program in webforms: <html> <head> <title>Hello world</title> </head>
by mattmanser 10y ago
I hate asp.net webforms as much as the next guy, but this is the same program in webforms:
<html>
<head>
<title>Hello world</title>
</head>
<body>
<p>Hello <%= Request["name"] %></p>
</body>
<html>
How many lines of code and config files are in that blog? 100? Compared to the 1 line of actual code in this...
- dymel 10y agoIt's not really the same. The tutorial shows how to setup two frameworks to work together, so it's easy to extend the application in both front- and backend with other functionalities. Noone in their clear mind wouldn't combine asp.net and angular to display simple message
- mattmanser 10y agoKeep moving the goalposts.
- cholantesh 10y agoI think it's just a bad use case. No one in their right mind is going to lay down this much pipe just to display a query string variable in a page.
- paintbox 10y agoIt's a tutorial, not code golf. Their example teaches me a lot more about ASP.NET Core + Angular2 than your example teaches me about ASP.NET WebForms.
- chadgeidel 10y agoASP.NET WebForms would have a bunch of <asp:Label id="myLabel"></asp:Label> (ASP namespaced form controls), with associated event handlers using the "page lifecycle" [1]. Your code here is much closer to ASP.NET MVC. [1] https://msdn.microsoft.com/en-us/library/ms178472.aspx?f=255&MSPPError=-2147217396 https://msdn.microsoft.com/en-us/library/ms178472.aspx?f=255...
- mattmanser 10y agoYou don't have to use label controls.
- 35bge57dtjku 10y agoI might have been happy to use ASP.NET if I only had to write this one hello world program with it.