<% @Page Language="VB" %>
<% @Import Namespace="System.IO" %><html>
<title>ASP.NET中的Hello,World例子
</title>
<script language="VB" runat="server">
Function helloworld()
dim achDrives() as string = Directory.GetLogicalDrives()
dim nNumOfDrives as integer = achDrives.Length
dim i as integer
dim aaa as string
aaa = "<ul>"
for i=1 to nNumOfDrives
aaa = aaa & "<li><a href='listdir.aspx?dir=" & Server.UrlEncode(achDrives[i]) & "'>" & achDrives[i] & "</a><br>"
next
aaa = "</ul>"
helloworld = aaa
End Function
</script>
<body>
<%=helloworld%></body>
</html>
<% @Import Namespace="System.IO" %><html>
<title>ASP.NET中的Hello,World例子
</title>
<script language="VB" runat="server">
Function helloworld()
dim achDrives() as string = Directory.GetLogicalDrives()
dim nNumOfDrives as integer = achDrives.Length
dim i as integer
dim aaa as string
aaa = "<ul>"
for i=1 to nNumOfDrives
aaa = aaa & "<li><a href='listdir.aspx?dir=" & Server.UrlEncode(achDrives[i]) & "'>" & achDrives[i] & "</a><br>"
next
aaa = "</ul>"
helloworld = aaa
End Function
</script>
<body>
<%=helloworld%></body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货