Recently I've been getting into MVC3 and Razor, and reading several articles about these topics to better understand the concept.
I've been reading Scott Guthrie's Blog Post, in which he provides the following 2 examples. The first being ASPX syntax, the second being Razor syntax:
This is great, but as a fair comparison of ASPX and Razor I'm a bit confused.
I've never seen any working example of ASPX syntax like that. Surely developers have used Repeater
controls etc since ASP.NET was released? I haven't seen syntax like that since Classic ASP.
I always thought it was bad practice to put programming code inline with the markup file, instead of the code behind file.
Do any ASP.NET ASPX developers code like this?