Will not render in IE 5.5 browser

C

CSDunn

Hello,
I am trying to help a co-worker of mine with a C# problem. The following
code will not render at all in the IE 5.5 browser we are using:

********************************************************
<html>

<head>

</head>

<body>

<form method= "post" runat="server">

<asp:Label id=lblHelloWorld text="HelloWorld" runat=Server />

<br>

<asp:Button onclick=ClickedIt text="Submit" runat=server />

</form>

</body>

<script Language=C# runat=Server>

void ClickedIt (Object sender, System.EventArgs e)

{

lblHello.World.Text = ".NET Rules!";

}

</Script>

</html>
**************************************************

This is supposed to be an elementary C# example, it come right out of a book
she is using to learn ASP.NET with C#. When she attempts to render the page
in the browser, the page just comes up blank. She has IIS 5.1 installed on
her Windows XP Pro machine, and has the 1.1 framework installed.

Why will this code not render in the browser?

Thanks!

CSDunn
 
E

Erik Frey

A cursory glance at your code shows reference to "lblHello.World" which
should read "lblHelloWorld".

You may want to start there. I doubt this problem is related to browser
version at all.

Erik
 
C

CSDunn

I corrected the error in the code, but the page still does not render. I put
this aspx page at the root directory of the web site, C:\Inetpub\wwwroot.
When I navigate to http://localhost/helloword.aspx, I get the following
message:
***********************************
Server Application Unavailable

The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.

Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.
**********************************
I checked the application log on the machine, but there was no recorded
event that would reflect this problem.

What else could the problem be?

Thanks again!

CSDunn
 
E

Erik Frey

I copied and pasted your code and it worked fine on my localhost IIS.
This suggests to me that something is wrong with your IIS/.NET setup, and
not with your C# code.

Quite possible, considering the ASP.NET installation woes I have heard
from my sysadmins!

So, you will probably get better advice if you ask this question in
microsoft.public.dotnet.framework.aspnet.

Erik
 
C

CSDunn

I have actually just confirmed that it is a server problem.
Thanks again for your help!

CSDunn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top