aspx very simple problem (beginner)

D

David

I have developed a very simple aspx that simply looks
like:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApps1.WebForm1"
aspCompat="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript"
content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post"
runat="server">
any text 1<br>
<% Response.Write
(DateTime.Now.ToString()) %>
any text 2<br>
</form>
</body>
</HTML>
// end of aspx

I have move the aspx to the IIS directory and when
executing the aspx only the html data is shown.
"any text 1
any text 2"

but nothing about "Response.Write(DateTime.Now.ToString()"

I have install .Net Framework 1.1 and XP Professional.

Thanks a lot in advance from this very beginner .Net
programmer.
 
W

Wim Hollebrandse

When you do a view source on that page, you'll probably also see that the
server side code is still visible.

Looks like the ASP.NET mappings in IIS are not configured.

You can solve this by issuing the following command from the .NET command
prompt.

aspnet_regiis -i

This should repair/install the mappings.

Hope this helps,
Wim Hollebrandse
http://www.wimdows.net
http://www.wimdows.com
 

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