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.
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.