我的机器装的是windows xp professional,后安装了iis 5.1,frontpage扩展,.net framework 1.1,.net framework sdk 1.1,visual studio .net企业版2003,在iis中将我的虚拟目录指定到了相应目录中,编写的asp文件可以正常显示,但编写了一个aspx文件,却只显示出一行文字,无论采用何语言,<% %>中的部分都不能执行。从网上找了许多aspx的简单文件,都不能正常显示。.net framework已经装了几遍了,还需要什么设置吗?以下是aspx文件源码:
<%@ Page Language="VB" %>
<html>
<head>
</head>
<body>
<center>
<% Dim I As Integer
For I = 0 to 7 %>
<font size="<%=I%>">欢迎使用 ASP.NET </font> <br>
<% Next %>
</center>
</body>
</html>
<%@ Page Language="VB" %>
<html>
<head>
</head>
<body>
<center>
<% Dim I As Integer
For I = 0 to 7 %>
<font size="<%=I%>">欢迎使用 ASP.NET </font> <br>
<% Next %>
</center>
</body>
</html>
<%@ Page Language="C#"%><html>
<head>
</head> <body> <center> <form action="intro4.aspx" method="post" runat=server> <h3> 姓名:<asp:textbox id="Name" runat="server"/> 类别:<asp:dropdownlist id="Category" runat=server>
<asp:listitem>psychology</asp:listitem>
<asp:listitem>business</asp:listitem>
<asp:listitem>popular_comp</asp:listitem>
</asp:dropdownlist> </h3> <asp:button text="查找" runat="server"/> </form> </center> </body>