Hi everyone,
I'm very new to ASP.NET. Here is my environment -- .NET 2.0, Win XP Pro SP2, VS 2005, IE 6.
I have a very simple page (taken from Esposito's ASP.NET 2.0 book) that upper-cases text the user enters. I copied the page below so you can see what I'm doing.
The page works perfectly fine in VS 2005 -- the text is upper-cased as it should be. When I copy the page to the C:\inetpub\wwwroot directory, however, the text is *not* upper-cased.
As an added check, I added the following line to the page:
<p>Right now it's <%= DateTime.Now %></p>
The above line works fine in both VS and IIS. So, why is the text not upper-cased when running in IIS?
Thanks very much...
Here is the full page:
<%@dotnet.itags.org. Page Language="C#" %>
<script runat='server'>
private void MakeUpper(object sender, EventArgs e) {
string buff = TheString.Value;
TheResult.InnerText = buff.ToUpper();
}
</script>
<html>
<head><title>Test</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
<body>
<p>Right now it's <%= DateTime.Now %></p>
<form id="Form1" runat='server'>
<input runat='server' id='TheString' type='text'/>
<input runat='server' id='Button_01' type='submit' value='Press Me' OnServerClick='MakeUpper'/>
<h4>Results</h4>
<span runat='server' id="TheResult"/>
</form>
</body>
</html>
Hi All,
My question remains but I have some follow-up information. It seems that the MakeUpper method is *NOT* being called when I run in IIS for some reason.
ISSUE NOT RESOLVED BUT MORE INFO AVAILABLE IN NW POST
I just tried this on my machine, I copied your code directly to a file and ran it and it looked just fine.
0 comments:
Post a Comment