看教程上写的还错,晕死,大家帮忙看一下怎么回事,我新手!!!!!
源码________________________________________________________________________________
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="2.aspx.cs" Inherits="lizi_no1_2" %>
<%@ Import Namespace="System.IO" %>
<html>
<head>
<title>无标题页</title>
</head>
<body>
<%
string[] achDrives = Directory.GetlogicalDrives();
int nNumOfDrives = achDrives.Length;
Response.Write("<ul>");
for (int i = 0; i < nNumOfDrives; i++)
{
Response.Write("<li><a href=\"listdir.aspx?dir=");
Response.Write(Server.UrlEncode(achDrives[i]));
Response.Write("\">" + achDrives[i]);
Response.Write("</a><br>");
}
Response.Write("</ul>");
%>
</body>
</html>
错误_______________________________________________________________________
错误 1 “System.IO.Directory”并不包含“GetlogicalDrives”的定义