<%@ page contentType="text/html;charset=WINDOWS-1252"%>This application was written in Notepad and deployed on the Apache Tomcat Server. That meant, at least for me, you don't need a compiler do develop something simple and dynamic. That was something cool.
<HTML>
<BODY>
<%="Hello World"%>
</BODY>
</HTML>
Today I was deploying an ASP.NET Application and noticed that all the ASPX files have only this text:
This is a marker file generated by the precompilation tool, and should not be deleted!and I was wondering.... “Can you program an ASP.NET Application without Visual Studio, using any text editor and deploy it manually without any compilation?”.
So I tried.
I created a new folder.
I mapped the folder on the IIS server.
I created a new aspx file in that folder with the content:
<%@ Page %>I opened the web browser and browsed the
<HTML>
<BODY>
<%="Hello World!"%>
</BODY>
</HTML>
http://localhost/MyFolder/Default.aspx and I got the Hello World! message.To make it a little more complicated a modified the Default.aspx page to do something dynamic, something like a calculation. I think
1 + 1 will do:<%@ Page %>and the obvious result displayed was
<HTML>
<BODY>
<%="1+1=" + (1+1).ToString()%>
</BODY>
</HTML>
1+1=3 :).So you are able to write ASP.NET applications using only the Notepad and an IIS server.
... but you are in .net, not in Java where the default language (and the only one) is Java. Witch language is the default for this simple page? The fastest way I could find out is to write something in c# language and see the result.
The new Default.aspx
<%@ Page %>The result:
<HTML>
<BODY>
<% for(int i=0 ; i<5 ; i++) { } %>
</BODY>
</HTML>
Compiler Error Message: BC30084: 'For' must end with a matching 'Next'.Looking in the
Detailed Compiler Output, I saw that the default compiler for the asp.net applications is C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe (visual basic compiler). Adding the language attribute to the page directive and pointing correctly to the language you use it compiles OK.
