asp最简单的程序?谢谢!
来源:百度知道 编辑:UC知道 时间:2024/06/01 11:46:59
源代码为:
<%@ Page Language="VB" %>
<html>
<head>
<title>my first asp.net page!</title>
</head>
<body>
</body>
</html>
<script language="vb"runat="server">
Private Sub Page_Load(sender As System.Object, By Val e As System.EventArgs)
Response.Write("hello asp.net !this is my first asp.net pages!")
End Sub
</script>
打开http://localhost/hello.aspx后:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
<%@ Page Language="VB" %>
<html>
<head>
<title>my first asp.net page!</title>
</head>
<body>
</body>
</html>
<script language="vb"runat="server">
Private Sub Page_Load(sender As System.Object, By Val e As System.EventArgs)
Response.Write("hello asp.net !this is my first asp.net pages!")
End Sub
</script>
打开http://localhost/hello.aspx后:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
你这个是asp.net(c#)
如果是asp应该是这样
<%@ Page Language="vbscript" %>
<html>
<head>
<title>my first asp.net page!</title>
</head>
<body>
</body>
</html>
<%response.write("hello asp.net !this is my first asp.net pages!")%>
<html>
<head>
<title>my first asp.net page!</title>
</head>
<body>
<%=now()%>
</body>
</html>
<script language="vbscript"runat="server">
你这个是.NET程序吧... 貌似非ASP哦