I followed the instructions and type the code following in the WebMatrix, but it seems have something wrong with it!
Code:
<html>
<head>
<title>Inserting ASP.NET code Example</title></head>
<body>
Line1: First HTML Line<br />
Line2: Second HTML Line<br />
Line3: Third HTML Line<br>
</body>
</html>
it is the example in Chapter 2 and the file name is messageHTML.aspx
The error output is
Code:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1519: Invalid token '<' in class, struct, or interface member declaration
Source Error:
Line 2: <script runat="server">
Line 3:
Line 4: <html>
Line 5: <head>
Line 6: <title>Inserting ASP.NET code Example</title></head>
Source File: C:\BegASPNET11\Ch02\messageHTML.aspx Line: 4
why in line 4?
Kini kita sudah berpisah, Mohon doa engkau bahagia...