Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aspx extension in iis 5.0

Status
Not open for further replies.

gorgor

Programmer
Aug 15, 2002
164
0
0
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top