This may be the wrong forum, but perhaps someone can help me out. I'm running win2k with IIS 5.0. I have .NET framework 1.1 installed with ASP.NET. I copied over a sample file from the ebook by Prosise called calc.aspx to my directory and tried to run it from The page displays but the code does not execute. All I see on my web page is a plus sign (+) and nothing else. Here is the source:
<html>
<body>
<form runat="server">
<asp:TextBox ID="op1" RunAt="server" />
+
<asp:TextBox ID="op2" RunAt="server" />
<asp:Button Text=" = " OnClick="OnAdd" RunAt="server" />
<asp:Label ID="Sum" RunAt="server" />
</form>
</body>
</html>
<script language="C#" runat="server">
void OnAdd (Object sender, EventArgs e)
{
int a = Convert.ToInt32 (op1.Text);
int b = Convert.ToInt32 (op2.Text);
Sum.Text = (a + b).ToString ();
}
</script>
I went to Internet Services Manager for my default website and added the .aspx extension in IIS's application mappings and pointed it to "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll". The aspx script still does not 'execute'. This should be straight forward but it just doesn't seem to be working.
Any help would be greatly appreciated.
Thanks in advance.
<html>
<body>
<form runat="server">
<asp:TextBox ID="op1" RunAt="server" />
+
<asp:TextBox ID="op2" RunAt="server" />
<asp:Button Text=" = " OnClick="OnAdd" RunAt="server" />
<asp:Label ID="Sum" RunAt="server" />
</form>
</body>
</html>
<script language="C#" runat="server">
void OnAdd (Object sender, EventArgs e)
{
int a = Convert.ToInt32 (op1.Text);
int b = Convert.ToInt32 (op2.Text);
Sum.Text = (a + b).ToString ();
}
</script>
I went to Internet Services Manager for my default website and added the .aspx extension in IIS's application mappings and pointed it to "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll". The aspx script still does not 'execute'. This should be straight forward but it just doesn't seem to be working.
Any help would be greatly appreciated.
Thanks in advance.