What would you write as an absolute minimum for writing an aspx file? The goal is to get the .net handler to start. Sometimes I want to make short code to test iis functionality. It is easy in old languages.
HTML
Hello world
ASP
<% Response.Write("Hello World") %>
ASP.NET
It works fine, but so awkward - yes.
<%@ Page Language="C#" %> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { Response.Write("Hello World!"); } </script>
System.Environment.Version is good, though, if you also check the version. Is this code really needed for asp.net? This is not a code that you simply "manually print, just for verification."
source share