viewsource.aspx
来自「This is a book about vb.you could learn 」· ASPX 代码 · 共 41 行
ASPX
41 行
<%@ Page Language="VB" %>
<%@ Import Namespace="System.IO" %>
<%
Dim strFilePath, strNameOnly As String
strFilePath = Server.MapPath(Request.URLReferrer.AbsolutePath)
strNameOnly = Mid(strFilePath, InStrRev(strFilePath, "\") + 1)
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><% = strNameOnly %></title>
<style type="text/css">
body {font-family:Tahoma,Arial,sans-serif; font-size:10pt}
input {font-family:Tahoma,Arial,sans-serif; font-size:9pt}
.heading {font-family:Tahoma,Arial,sans-serif; font-size:14pt; font-weight:bold}
.subhead {font-family:Tahoma,Arial,sans-serif; font-size:12pt; font-weight:bold; padding-bottom:5px}
.cite {font-family:Tahoma,Arial,sans-serif; font-size:8pt}
</style>
</head>
<body bgcolor="#ffffff">
<span class="heading"><% = strNameOnly %></span><hr />
<!--------------------------------------------------------------------------->
<XMP>
<%
If InStr(strFilePath, "\") > 0 Then
Dim objSR As StreamReader = File.OpenText(strFilePath)
Response.Write(objSR.ReadToEnd())
objSR.Close
objSR = Nothing
End If
%>
</XMP>
<!--------------------------------------------------------------------------->
<!-- #include file=".\foot.inc" -->
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?