ASP程序的特点
编写ASP程序由 Javascript 或 VBscript 结合 HTML 代码来实现。
常用编写工具有记事本,Frontpage 和 Dreamweaver 。
ASP 代码不会被传输到客户端的浏览器上,这有助于保护源代码,以免泄漏。
ASP标记的用法
方式1:将脚本语言编入<% %> 中,可以和 HTML 语言混合使用。
方式2:用<script> </script> 嵌入Javascript 或 VBscript 脚本语言中。
示例:
| 以下为引用内容: <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> ASP常用标记的用法 </title> </head> <body> <% response.write now() // <% %> 标记 %> <hr width="130" align="left"/> <script language="vbscript" runat="server"> // <script> </script> 标记 response.write now() </script> </body> </html> |
本文介绍ASP程序的特点及编写工具,强调源代码的安全性,并详细解释ASP标记的两种用法,包括<%%>和<script></script>标记的应用实例。
909

被折叠的 条评论
为什么被折叠?



