I am a little confused in how ASP.NET code is written before Razor was introduced. All I can see in many pages on the internet is how Razor is used with ASP.net. I want to know how ASP.net code is been written without Razor.

classic ASP

<html>
<body>
<%
response.write("My first ASP script!")
%>
</body>
</html> 

ASP.NET with Razor

<html>
<body>
     <h1>Hello Web Pages</h1>
     <p>The time is @DateTime.Now</p>
</body>
</html>

ASP.net without Razor??? basically I want to know how people coded in ASP.net (not classic ASP) before razor was introduced.

Related posts

Recent Viewed