Click to See Complete Forum and Search --> : IIS 5.1, ASP.net and XP


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 &lt;asp:label&gt; 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.

lmf232s
02-02-2005, 06:35 PM
have you installed the .net framework on your computer

tripwater
02-03-2005, 09:55 AM
To be honest with you I have no idea. The only thing I have done so far is go to add/remove programs and under install components, checked the box for IIS and let it install. COuld you give me a brief description of what I need to do to install this .NET framework?

Thank you

lmf232s
02-03-2005, 10:05 AM
well before you can run a asp.net page you have to have the
.net framework installed. Unlike asp pages, your server has to be set up to run the .net pages.

check out this web site, i downloaded the web matrix a while back although i never used it so i cant tell you anything about it. Im not sure, but you might install the framework when you install the web matrix.

http://asp.net/default.aspx?tabindex=0&tabid=1

i would actually go to the .net section of the forums and see what all you need to set this up. My company does something with microsoft were we get the disks, so i cant tell you ecactly what you need.