I am new to ASP.NET, but I set up my web server on Windows 2000 and it seems to work including the ASP.NET folder configurations. I created a sample file as below and placed in a sub directory \ASP.NET\1.1\ in my htdocs directory and try to access it by typing
http://computername/ASP.NET/1.1 in the address bar of my browser, but all I get is the filename listing and if I click on it the browser tries to download it. I am just wondering what I am doing wrong.
I decided to use IE6 instead of Firefox and this time when I click on the file it almost works, it just does not display the date as it should. Will Firefox not work with ASP.NET then? I am almost sure I have gone to web pages that have aspx extensions.
code:
<%@ Page language="C#" %>
<html>
<head>
<title>Testing ASP.NET and C# on my first ASP.NET web page</title>
</head>
<body>
<h2>Testing ASP.NET and C# on my first ASP.NET web page</h2>
Today's Date:
<%=DateTime.Now.ToString()%>
</body>
</html>