What would you write as an absolut minimum to write a aspx file? The purpose is to force the .net handler to run. Sometimes I want to make a short handwrited code to check the iis functionality. It’s easy in older languages.
HTML
Hello World
ASP
<% Response.Write("Hello World") %>
ASP.NET
This works just fine but so clumsy – yes.
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Hello World!");
}
</script>
System.Environment.Version is nice, though, if also check the version. Is all this code really needed for asp.net? It isn’t a code you just “hand print just for sake to check”.
The absolute minimum is, or could be construed to be: