I have plenty of experience with HTML, CSS, and some experience with Javascript and other such scripting codes, and also know C#.
I just installed Xampp on my computer (runs a server off of XP OS’s) and tried a basic ASP.NET page, loading it through “http://localhost”, however the server-side part of the page does not work. Do I need to install any specific software in the web directory or anywhere else?
Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="jmarter.css" rel="stylesheet" type="text/css" />
<script runat="server" language="C#">
protected void Page_Load(Object s, EventArgs e)
{
lblTime.Text = DateTime.Now.ToString();
}
</script>
</head>
<body>
<p>Hello There!</p>
<p>The time now is: <asp:Label runat="server" ID="lblTime" /></p>
</body>
</html>