📄 ch05.asp
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./ch05.files/filelist.xml">
<link rel=Edit-Time-Data href="./ch05.files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>第 5 章 Response 物件</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>zbg2000</o:Author>
<o:Template>Normal</o:Template>
<o:LastAuthor>zbg2000</o:LastAuthor>
<o:Revision>3</o:Revision>
<o:TotalTime>5</o:TotalTime>
<o:Created>2000-04-13T10:29:00Z</o:Created>
<o:LastSaved>2000-04-14T02:42:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>395</o:Words>
<o:Characters>2256</o:Characters>
<o:Company>betc</o:Company>
<o:Lines>18</o:Lines>
<o:Paragraphs>4</o:Paragraphs>
<o:CharactersWithSpaces>2770</o:CharactersWithSpaces>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:Compatibility>
<w:UseFELayout/>
</w:Compatibility>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:1 135135232 16 0 262144 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:宋体;
mso-bidi-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;
text-underline:single;}
p
{margin-right:0cm;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:宋体;
mso-bidi-font-family:"Times New Roman";}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white background="./ch05.files/image001.jpg" lang=ZH-CN
link=blue vlink=blue style='tab-interval:21.0pt'>
<div class=Section1>
<p><b><span style='font-size:13.5pt;color:maroon'>第<span lang=EN-US> 5 章
Response 对象</span></span></b></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\stupid.asp">stupid.asp</a> -- 傻傻地用 Response.Write <a
href="Viewasp.asp?FileName=ch05\stupid.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\nostupid.asp">nostupid.asp </a>-- HTML 标记与一般的文字只要直接写出来 <a
href="Viewasp.asp?FileName=ch05\nostupid.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\simple.asp">simple.asp</a> -- 利用 <%=XXXX%> 让程序更乾净清爽 <a
href="Viewasp.asp?FileName=ch05\simple.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\fruit0.asp">fruit0.asp</a> -- 结构清晰的 ASP 网页 <a
href="Viewasp.asp?FileName=ch05\fruit0.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\SubTab1.asp">SubTab1.asp </a>-- 将 HTML 标记嵌入 ASP 程序中(待修改) <a
href="Viewasp.asp?FileName=ch05\SubTab1.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\SubTab2.asp">SubTab2.asp</a> -- 将 HTML 标记嵌入 ASP 程序中(已修改) <a
href="Viewasp.asp?FileName=ch05\SubTab2.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\fruit1.asp">fruit1.asp</a> -- 判断今天是星期几,然后决定将网页转移到哪一个网页 <a
href="Viewasp.asp?FileName=ch05\fruit1.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Echo3.asp">Echo3.asp</a> -- 借助 Response.End 结束程序 <a
href="Viewasp.asp?FileName=ch05\Echo3.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Error01.asp">Error01.asp</a> -- Response.Buffer = True 的错误用法 <a
href="Viewasp.asp?FileName=ch05\Error01.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Flush.asp">Flush.asp </a>-- 强制送出缓冲区的数据 <a
href="Viewasp.asp?FileName=ch05\Flush.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\OutSamp.asp">OutSamp.asp</a> -- 网页会显示测试数据的程序 <a
href="Viewasp.asp?FileName=ch05\OutSamp.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\OutSamp2.asp">OutSamp2.asp</a> -- OutSamp.asp 改良版,若一切正确,则不显示测试数据 <a
href="Viewasp.asp?FileName=ch05\OutSamp2.asp">(查看源代码)</a></span></p>
<p><strong><span style='color:maroon'>本章练习参考解答</span></strong></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Ex01.asp">Ex01.asp</a> -- 「HTML标记与一般的文字只要直接写出来」之练习(待修改) <a
href="Viewasp.asp?FileName=ch05\Ex01.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Ex01Ans.asp">Ex01Ans.asp</a> -- 「HTML标记与一般的文字只要直接写出来」之练习(已修改) <a
href="Viewasp.asp?FileName=ch05\Ex01Ans.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Ex02.asp">Ex02.asp</a> -- 「结构清晰的 ASP 网页」之练习(待修改) <a
href="Viewasp.asp?FileName=ch05\Ex02.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Ex02Ans.asp">Ex02Ans.asp</a> -- 「结构清晰的 ASP 网页」之练习(已修改) <a
href="Viewasp.asp?FileName=ch05\Ex02Ans.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\SubTab3.asp">SubTab3.asp</a> -- 「将 HTML 标记嵌入ASP程序中」之练习(待修改) <a
href="Viewasp.asp?FileName=ch05\SubTab3.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\SubTab4.asp">SubTab4.asp</a> -- 「将 HTML 标记嵌入ASP程序中」之练习(已修改) <a
href="Viewasp.asp?FileName=ch05\SubTab4.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Ex03Ans.asp?page=F8317">Ex03Ans.asp?page=F8317 </a>-- 撰写一ASP程序读取
Page 参数, 然后跳到 Page 所对应的网页 <a href="Viewasp.asp?FileName=ch05\Ex03Ans.asp">(查看源代码)</a></span></p>
<p style='margin-right:36.0pt;margin-left:36.0pt'><span lang=EN-US><a
href="ch05\Expire.asp">Expire.asp</a> -- 使用 Response.End 方法写一有使用期限的网页 <a
href="Viewasp.asp?FileName=ch05\Expire.asp">(查看源代码)</a></span></p>
<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US>
<hr size=2 width="100%" align=center>
</span></div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -