Hi,
I'm just trying out ASP.net and got this code from a book. For some reason, "Hello World!" will not print. Actually, no code that I put within the "<% --- %>" brackets is executed.
Basically, I just started a new project and then added the "<% Response.Write("Hello World!"
%>" part.
I am developing in the Microsoft Development Environment 2002 v7.0.9466 and running Microsoft .Net Framework 1.0 v1.0.3705 all on Windows XP Pro.
What am I doing wrong?
Thanks in advance!
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content=" </HEAD>
<body MS_POSITIONING="GridLayout" bgcolor="#ffffcc">
<%
Response.Write("Hello World!"
%>
</body>
</HTML>
I'm just trying out ASP.net and got this code from a book. For some reason, "Hello World!" will not print. Actually, no code that I put within the "<% --- %>" brackets is executed.
Basically, I just started a new project and then added the "<% Response.Write("Hello World!"
I am developing in the Microsoft Development Environment 2002 v7.0.9466 and running Microsoft .Net Framework 1.0 v1.0.3705 all on Windows XP Pro.
What am I doing wrong?
Thanks in advance!
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content=" </HEAD>
<body MS_POSITIONING="GridLayout" bgcolor="#ffffcc">
<%
Response.Write("Hello World!"
%>
</body>
</HTML>