· If you are using ASP 3.0 (the version of ASP that comes with Windows 2000 / IIS 5) then you can use the following syntax:Session.Contents.Remove "name"where Name is the name of the Session variable you wish to remove. Removing Session variables in this way has its a...
· Deleting a Subset of Session Variables When using Sessions to store variables in, I use a naming convention - for example, for all Customer related info I prefix the session variable with the substring Customer. (so for the CustomerID it would be Customer.ID, the customer use...
· Problem with Query String Method Often time we use query string collection to retrieve an unique record from a table. Notice the following piece of code - Detail.ASP?RecordID=200 Here we are passing a query string value called "RecordID" using the url. We then use ...
· 5. 返回值对函数返回值的处理不同于存储过程返回值的处理,这常常导致混淆。在函数中,经常是返回一个布尔值来表明函数运行的成功与否。If SomeFunctionName() = True Then ' Function succeeded但在调用一个存储过程时,却不能使用同样的方法,因为存储是用Execute方法运行的,同时返回一...
· Using the global.asa to schedule ASP code execution.Have you ever had some ASP code that needed to execute every once in a while but, you just didn't know how to do it.There is a solution that doesn't involve running any scheduling or scripting software on the server and is a...
· 4.2.3 服务器端包含指令的例子 本节提供了一些示例页面,可以用来对各种服务器端包含语句进行实验。打开示例网页的子目录Chapter04,显示“SSI Directives and the ASP Server Object”主页(即子目录Chapter04中的Default.ASP),如图4-3所示:图4-3 示例网页 本书的所有示例都可以 ...
· 1.3 ASP Server对象正像在前面看到的那样,通过服务器端包含的经ISAPI访问Web服务器的页面,用传统动态页面指令和命令可以做相当多的事情。但同时也有一些明显的限制。例如,可以从Request.ServerVariables集合检索到所有随同客户端的请求发送过来的HTTP报头的值。它几乎可以与使用SSI #echo匹敌...