为何ASP.Net与HTML分离可正常运行,混合后无法运行?
分离正常运行的文件如下:
<script language="c#" runat="server">
void Page_Load()
{
Response.Write("First ASP.Net Line<br/>");
Response.Write("Second ASP.Net Line<br/>");
Response.Write("Third ASP.Net Line<br/>");
}
</script>
<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>
混合HTML无法运行的代码如下:
<%@ Page Language="c#" %>
<html>
<head>
<title>Interweaving ASP.NET code and HTML Example</title>
</head>
<body>
Line1:First HTML Line<br/>
<% Response.Write("First ASP.NET Line<br/>") %>
</body>
</html>
请问这是为什么?我装的是Full dot net framwork