透明 发表于 2015-2-3 23:39:23

ASP网页编程之Raise Method

想法是和程序员的想法不一样的.至于为什么.大家去想一想.跟心理学有关的   Syntax
object.Raise(number, source, description, helpfile, helpcontext)
The Raise method has these parts:

Part Description

object: Always the Err object.

number: A Long integer subtype that identifies the nature of the error. VBScript errors (both VBScript-defined and user-defined errors) are in the range 0C65535.

source: A string expression naming the object or application that originally generated the error. When setting this property for an Automation object, use the form project.class. If nothing is specified, the programmatic ID of the current VBScript project is used.

description: A string expression describing the error. If unspecified, the value in number is examined. If it can be mapped to a VBScript run-time error code, a string provided by VBScript is used as description. If there is no VBScript error corresponding to number, a generic error message is used.

helpfile: The fully qualified path to the Help file in which help on this error can be found. If unspecified, VBScript uses the fully qualified drive, path, and file name of the VBScript Help file.

helpcontext: The context ID identifying a topic within helpfile that provides help for the error. If omitted, the VBScript Help file context ID for the error corresponding to the number property is used, if it exists.


Remarks

All the arguments are optional except number. If you use Raise, however, without specifying some arguments, and the property settings of the Err object contain values that have not been cleared, those values become the values for your error.

When setting the number property to your own error code in an Automation object, you add your error code number to the constant vbObjectError. For example, to generate the error number 1050, assign vbObjectError + 1050 to the number property.
</p>因为现在数据库都使用标准的SQL语言对数据库进行管理,所以如果是标准SQL语言,两者基本上都可以通用的。SQL Server还有更多的扩展,可以用存储过程,数据库大小无极限限制。

小妖女 发表于 2015-2-7 07:41:14

ASP的语言不仅仅只是命令格式差不多,而是包含在<%%>之内的命令完全就是VB语法。虽然ASP也是做为单独的一个技术来提出的,但他就是完全继承了VB所有的功能。

柔情似水 发表于 2015-2-16 11:19:36

以上是语言本身的弱点,在功能方面ASP同样存在问题,第一是功能太弱,一些底层操作只能通过组件来完成,在这点上是远远比不上PHP/JSP,其次就是缺乏完善的纠错/调试功能,这点上ASP/PHP/JSP差不多。

爱飞 发表于 2015-3-3 01:05:18

它可通过内置的组件实现更强大的功能,如使用A-DO可以轻松地访问数据库。

活着的死人 发表于 2015-3-10 10:18:47

不能只是将它停留在纸上谈兵的程度上。

老尸 发表于 2015-3-17 06:11:16

那么,ASP.Net有哪些改进呢?

山那边是海 发表于 2015-3-23 22:43:04

你可以通过继承已有的对象最大限度保护你以前的投资。并且C#和C++、Java一样提供了完善的调试/纠错体系。

小魔女 发表于 2015-4-9 03:52:46

我认为比较好的方法是找一些比较经典的例子,每个例子比较集中一种编程思想而设计的。

再见西城 发表于 2015-4-10 16:54:03

Request:从字面上讲就是“请求”,因此这个是处理客户端提交的东东的,例如Resuest.Form,Request.QueryString,或者干脆Request("变量名")

莫相离 发表于 2015-4-12 16:49:07

如何更好的使自己的东西看上去很不错等等。其实这些都不是问题的实质,我们可以在实践中不断提升自己,不断充实自己。

因胸联盟 发表于 2015-4-13 07:14:08

掌握asp的特性而且一定要知道为什么。

admin 发表于 2015-4-16 16:48:06

那么,ASP.Net有哪些改进呢?

若天明 发表于 2015-4-26 05:10:27

下载一个源代码,然后再下载一个VBScript帮助,在源代码中遇到不认识的函数或是其他什么程序,都可以查帮助进行解决,这样学习效率很高。

精灵巫婆 发表于 2015-5-1 20:23:13

虽然ASP也有很多网络教程。但是这些都不系统。都是半路出家,只是从一个例子告诉你怎么用。不会深入讨论,更不会将没有出现在例子里的方法都一一列举出来。

谁可相欹 发表于 2015-5-6 21:09:48

我们必须明确一个大方向,不要只是停留在因为学而去学,我们应有方向应有目标.

分手快乐 发表于 2015-6-6 21:10:01

从事这个行业,那么你可以学ASP语言,简单快速上手,熟练dreamweav排版,写asp代码,熟练photoshop处理图片,打好基础就行了

灵魂腐蚀 发表于 2015-6-8 14:50:24

Request:从字面上讲就是“请求”,因此这个是处理客户端提交的东东的,例如Resuest.Form,Request.QueryString,或者干脆Request("变量名")

变相怪杰 发表于 2015-7-5 00:32:15

最近在学asp,不要问我为什么不直接学.net,因为公司网站是asp做的所以有这个需要,卖了本书asp入门到精通,对里面的六大内置对象老是记不住,还有很多属性和方法看的头晕。

深爱那片海 发表于 2015-7-5 01:04:45

跟学别的语言一样,先掌握变量,流程控制语句(就是ifwhileselect)等,函数/过程,数组
页: [1]
查看完整版本: ASP网页编程之Raise Method