tripwater
02-02-2005, 12:13 PM
Let me start off by stating that I am a php programmer running on apache just starting IIS and ASP.net.
I am trying to work through some tutorials and I do not know what I am doing wrong but it seems like something is not running. Below is some ASP.net code that I am trying but the time does not show up in my browser, only the HTML does. And this is in Mozilla. IE won't even open the page. I went to add/remove programs , stuck in the XP CD and checked the box for IIS and it installed correctly. I have done this twice and no dice. Any ideas as to what I am doing wrong?
Here's the code
<html>
<script language="C#" runat="server">
void Page_Load(Object Src, EventArgs E) {
Message.Text = "You last accessed this page at: " + DateTime.Now;
}
</script>
<body>
<!-- #include File="C:\Inetpub\wwwroot\DotNetJunkies\DotNetJunkiesWeb\_js\omni.inc" -->
<h3><font face="Verdana">Manipulating Server Controls</font></h3>
This sample demonstrates how to manipulate the <asp:label> server control within
the Page_Load event to output the current time.
<p>
<hr>
<asp:label id="Message" font-size="24" font-bold="true" runat=server/>
</body>
</html>
Thanks for any help.
I am trying to work through some tutorials and I do not know what I am doing wrong but it seems like something is not running. Below is some ASP.net code that I am trying but the time does not show up in my browser, only the HTML does. And this is in Mozilla. IE won't even open the page. I went to add/remove programs , stuck in the XP CD and checked the box for IIS and it installed correctly. I have done this twice and no dice. Any ideas as to what I am doing wrong?
Here's the code
<html>
<script language="C#" runat="server">
void Page_Load(Object Src, EventArgs E) {
Message.Text = "You last accessed this page at: " + DateTime.Now;
}
</script>
<body>
<!-- #include File="C:\Inetpub\wwwroot\DotNetJunkies\DotNetJunkiesWeb\_js\omni.inc" -->
<h3><font face="Verdana">Manipulating Server Controls</font></h3>
This sample demonstrates how to manipulate the <asp:label> server control within
the Page_Load event to output the current time.
<p>
<hr>
<asp:label id="Message" font-size="24" font-bold="true" runat=server/>
</body>
</html>
Thanks for any help.