仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1568|回复: 19
打印 上一主题 下一主题

[学习教程] ASP网页设计Script Encoder 语法

[复制链接]
兰色精灵 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-2-3 23:35:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Access是一种桌面数据库,只适合数据量少的应用,在处理少量数据和单机访问的数据库时是很好的,效率也很高。但是它的同时访问客户端不能多于4个。access数据库有一定的极限,如果数据达到100M左右,很容易造成服务器iis假死,或者消耗掉服务器的内存导致服务器崩溃。encode|语法   Script Encoder Syntax

SCRENC [/f] [/xl] [/l defLanguage ] [/e defExtension] inputfile outputfile

Argument
Description

/s
Optional. Switch that specifies that the script encoder is to work silently; that is, produce no screen output. If omitted, the default is to provide verbose output.

/f
Optional. Specifies that the input file is to be overwritten by the output file. Note that this option destroys your original input source file. If omitted, the output file is not overwritten.

/xl
Optional. Specifies that the <@language> directive is not added at the top of .asp files. If omitted, the <@language> directive is added for all .asp files.

/l defLanguage
Optional. Specifies the default scripting language (JScript or VBScript) to use during encoding. Script blocks within the file being encoded that do not contain a language attribute are assumed to be of this specified language. If omitted, JScript is the default language for HTML pages and scriptlets, while VBScript is the default for ASP. For plain text files, the file extension (either .js or .vbs) determines the default scripting language.

/e defExtension
Optional. Associates the input file with a specific file type. Use this switch when the input file's extension doesn't make the file type obvious; that is, when the input file extension is not one of the recognized extensions, but the file content does fall into one of the recognized types. There is no default for this option. If a file with an unrecognized extension is encountered and this option is not specified, the script encoder fails for that unrecognized file. Recognized file extensions are .asa, .asp, .cdx, .htm, .html, .js, .sct, and .vbs.

inputfile
Required. The name of the input file to be encoded, including any necessary path information relative to the current directory.

outputfile
Required. The name of the output file to be produced, including any necessary path information relative to the current directory.





--------------------------------------------------------------------------------

Figure 3 Encoding a Page



Public Sub EncodePage()
' Sample encoder
' Andrew Clinick Jan 1999
' Obviously this code could do with some error trapping etc
' but it should give you the basics to get started


Dim strHTML As String
' Get the Frontpage document
Dim mydoc As FPHTMLDocument
' Create a new instance of the scripting.encoder object
Dim myEncoder As New Scripting.Encoder
' Get the current active document
Set mydoc = ActiveDocument
' Get the HTML for the active document
strHTML = mydoc.DocumentHTML
' Call the encodescriptfile method with the HTML
strHTML = myEncoder.EncodeScriptFile(".htm", strHTML, 0, "")
' Set the documentHTML to be the return HTML with encoded script
mydoc.DocumentHTML = strHTML
' We're done!
End Sub
</p>  专业性的服务。有的ASP商提供垂直型的应用服务,针对某一特定行业提供应用服务。
第二个灵魂 该用户已被删除
沙发
发表于 2015-2-4 03:02:02 | 只看该作者
掌握asp的特性而且一定要知道为什么。
变相怪杰 该用户已被删除
板凳
发表于 2015-2-9 01:40:36 | 只看该作者
ASP的语言不仅仅只是命令格式差不多,而是包含在<%%>之内的命令完全就是VB语法。虽然ASP也是做为单独的一个技术来提出的,但他就是完全继承了VB所有的功能。
兰色精灵 该用户已被删除
地板
 楼主| 发表于 2015-2-14 19:24:55 | 只看该作者
还有如何才能在最短的时间内学完?我每天可以有效学习2小时,双休日4小时。
透明 该用户已被删除
5#
发表于 2015-2-27 01:39:20 | 只看该作者
ASP的语言不仅仅只是命令格式差不多,而是包含在<%%>之内的命令完全就是VB语法。虽然ASP也是做为单独的一个技术来提出的,但他就是完全继承了VB所有的功能。
飘灵儿 该用户已被删除
6#
发表于 2015-3-8 18:50:58 | 只看该作者
运用ASP可将VBscript、javascript等脚本语言嵌入到HTML中,便可快速完成网站的应用程序,无需编译,可在服务器端直接执行。容易编写,使用普通的文本编辑器编写,如记事本就可以完成。由脚本在服务器上而不是客户端运行,ASP所使用的脚本语言都在服务端上运行。
爱飞 该用户已被删除
7#
发表于 2015-3-9 13:57:10 | 只看该作者
哪些内置对象是可以跳过的,或者哪些属性和方法是用不到的?
admin 该用户已被删除
8#
发表于 2015-3-11 19:56:46 | 只看该作者
最近在学asp,不要问我为什么不直接学.net,因为公司网站是asp做的所以有这个需要,卖了本书asp入门到精通,对里面的六大内置对象老是记不住,还有很多属性和方法看的头晕。
乐观 该用户已被删除
9#
发表于 2015-3-19 10:41:15 | 只看该作者
Server:这个表示的服务器,操作服务器的一些东西使用这个,如Server.Mappath转换服务器路径,Server.CreateObject实例化一个组件
若相依 该用户已被删除
10#
发表于 2015-3-27 18:08:37 | 只看该作者
先学习用frontpage熟悉html编辑然后学习asp和vbscript建议买书进行系统学习
不帅 该用户已被删除
11#
发表于 2015-4-5 01:21:47 | 只看该作者
还有如何才能在最短的时间内学完?我每天可以有效学习2小时,双休日4小时。
莫相离 该用户已被删除
12#
发表于 2015-4-8 14:39:13 | 只看该作者
我们必须明确一个大方向,不要只是停留在因为学而去学,我们应有方向应有目标.
谁可相欹 该用户已被删除
13#
发表于 2015-4-11 04:09:54 | 只看该作者
如何更好的使自己的东西看上去很不错等等。其实这些都不是问题的实质,我们可以在实践中不断提升自己,不断充实自己。
蒙在股里 该用户已被删除
14#
发表于 2015-4-26 13:10:32 | 只看该作者
还有如何才能在最短的时间内学完?我每天可以有效学习2小时,双休日4小时。
老尸 该用户已被删除
15#
发表于 2015-4-26 23:09:10 | 只看该作者
ASP也是这几种脚本语言中最简单易学的开发语言。但ASP也是这几种语言中唯一的一个不能很好支持跨平台的语言。  因为ASP脚本语言非常简单,因此其代码也简单易懂,结合HTML代码,可快速地完成网站的应用程序。
再见西城 该用户已被删除
16#
发表于 2015-4-27 21:06:47 | 只看该作者
代码的可重用性差:由于是面向结构的编程方式,并且混合html,所以可能页面原型修改一点,整个程序都需要修改,更别提代码重用了。
活着的死人 该用户已被删除
17#
发表于 2015-5-4 21:43:05 | 只看该作者
兴趣爱好,那么你无须学编程,申请一个域名和空间,在网上下载一些免费开源的CMS系统,你不用改代码,只须熟悉它们的后台操作,像office一样简单方便,很快就能建一个站点,很多站长都是这样做的
柔情似水 该用户已被删除
18#
发表于 2015-5-8 15:00:20 | 只看该作者
兴趣爱好,那么你无须学编程,申请一个域名和空间,在网上下载一些免费开源的CMS系统,你不用改代码,只须熟悉它们的后台操作,像office一样简单方便,很快就能建一个站点,很多站长都是这样做的
飘飘悠悠 该用户已被删除
19#
发表于 2015-5-11 12:52:00 | 只看该作者
学习ASP其实应该上升到如何学习程序设计这种境界,其实学习程序设计又是接受一种编程思想。比如ASP如何学习,你也许在以前的学习中碰到过。以下我仔细给你说几点:
愤怒的大鸟 该用户已被删除
20#
发表于 2015-6-19 21:45:34 | 只看该作者
掌握asp的特性而且一定要知道为什么。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-7 00:16

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表