Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Getting Started


Message #1 by "Khendys Gordon" <kgordon@t...> on Wed, 23 Oct 2002 14:45:50
When I attempt to run a simple aspx page, only the HTML code was printed 
to the webpage.  Upon viewing the source code of the webpage I could still 
see my C# and ASP .NET code.  I installed the .NET framework successfully.


<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-
1" %>
<script language="c#" runat="server">
	void Page_Load()
	{
		time.Text = DateTime.Now.Hour.ToString() + ":" + 
DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
	}
</script>
<html>
<head>
<title>The Punctual Web Server</title>
</head>
<body>
	<h1>Welcome</h1>
	It is currently: <asp:label id="time" runat="server" />
</body>
</html>

  Return to Index