A Test web page for ASP.NET without Visual Studio

Create a Text file with an extension of aspx and paste the following code. After you have saved the file, create a Virtual Directory in your IIS pointing to the folder where you saved it. Now, browse the file. If you have .NET Framework installed and mapped correctly, you should be able to see the output.

<% @Page Language="C#" %>

<script runat="Server">
private void WriteMessage(object sender, EventArgs e)
{
lblOutput.Text = "You entered: " + txtInputBox.Value;
}
</script>
<html>
<title>Sample Test Page in aspx</title>
<body>
<h1>Just a simple Test page</h1>
<form runat="server">
<input runat="server" type="text" id="txtInputBox" />
<input runat="server" type="submit" value="Show" OnServerClick="WriteMessage" />
<HR>
<asp:Label id="lblOutput" runat="server">Output Area</asp:Label>
</form>
</body>
</html>