asp教程

以下是为您整理出来关于【asp教程】合集内容,如果觉得还不错,请帮忙转发推荐。

【asp教程】技术教程文章

javascript asp教程第十一课--Application 对象【代码】

Overview: The Application Object represents a collection of ASP pages. The Application object has zero (0) properties, two (2) collections, two (2) methods, and two (2) events. Get Started: Below are a couple scripts for lesson11. <%@LANGUAGE="JavaScript"%> <% //No ASP Here, just a regular HTML Page %> <HTML> <FORM ACTION="script11a.asp" METHOD="Post"> <STRONG>Would you like to chose the offici...

javascript asp教程第十二课---session对象【代码】

Overview: The Session Object is how you track a single user across many pages. It has four (4) properties, two (2) collections, one (1) method, and two (2) events. Get Started: In this series of examples we will create a password system. We will use the Session Object to track whether or not a user is authorized to view certain pages. Below are several scripts for lesson12. Look at them, play w...

javascript asp教程第十三课--include文件【代码】

Server Side Includes: Experienced JavaScript programmers know that code reuse is good. Experienced JavaScript programmers also know that JavaScript functions are data types. So, we should be able to store a JavaScript function inside a Session Variable or an Application Variable, right? Unfortunately, no. The way to reuse JavaScript functions across many pages is to use SSI: Server Side Includes...

javascript asp教程服务器对象【代码】

Overview: The Server Object has seven (7) Methods, one (1) Property, zero (0) Events, and zero (0) Collections. List of Methods: Server MethodsCreateObject( ) Server.CreateObject("ADODB.Recordset")Create an instance of an ObjectExecute( ) Server.Execute("fileName.asp")Executes an outside file (effect is similar to SSI)GetLastError( ) Server.GetLastError()Returns location and description of the l...

javascript asp教程第五课--合二为一

两条防线,一个函数: 试问你如何能保证客户端和服务器端具有相同的功能?表单域的验证闪现在我们眼前。别人把你的html复制到另外一个脚本,然后改变客户端的表单域验证--这并不是一件难事。摆在眼前的解决方法是将表单域的验证放置在服务器端。但那又意味着因为使用者的一个小错误,都要给服务器端要返回一串的错误信息。那么,我们何不同时拥有二者呢?不仅仅如此,我们还可以在客户端和服务器端使用同一个javascript函数来保证二...

javascript asp教程第六课-- response方法【图】

response 对象:reponse是asp中六个对象之一。它代表了服务器端对浏览器的回应。response有8种方法,9种属性和一个集。在这一课,我们就重点讲述方法。方法:在javascript中,asp方法使用括号。请注意依赖response.buffer的两个方法,我们将在下一课讲到他们。同样应该注意到addheader()和redirect(),因为他们必须优先于write()执行。所有的方法都在上面描述和演示了。下面我将详细讲述每一个方法。我将花点额外的时间来讲述我们用...

javascript asp教程第二课--转义字符【图】

并非是题外话:我们在第二课中要讲到的“转义字符”看起来与我们的课程并没有关系。事实并非如此。转义字符是在asp中使用javascript的一个完整部分。而第二课要讲的恰恰就是转义字符。没有转义字符,那么你为了写出有效率的asp脚本将会遇到许多的困难。抱歉,下面进入正题:以下是第二课的asp脚本。还记不记得在第一课的列子中,我们怎样编写了一个html输出都在同一行的代码。转义字符允许我们增加换行符号。下面是我们上边例子在客...

javascript asp教程第三课 new String() 构造器【图】

开始:new String() 是本课程计划中较早出现的另一个让人感觉到奇怪的地方。但和转义字符一样, new String()是创建一个成功的asp javascript应用的必须元素。下面是本课的两个脚本:下面是实际上承担重量的脚本:行为中的new String( ):现在我们来看看下面的asp行。Request.Form 我们将在后面有独立的课程来讲授。下面才是我们现在要讲的重点。在request.form中所持有的数据(来自用户的数据)并不是一个javascript数据类型。相反...

javascript asp教程第七课--response属性【代码】

Below is a table of Response Properties along with examples and explanations. Response PropertiesBuffer Response.Buffer = trueAllows for the buffering of outputCacheControl Response.CacheControl="Public" Sets Cache to "Public" or "Private"CharSet Response.CharSet="windows-1252"Sets the ISO character setContentType Response.ContentType="text/HTML"Specifies the output mime type (text/html, text/plai...

javascript asp教程第九课--cookies【代码】

Response Cookies in General: Well start with the Response Cookies collection. I dont think it could be any easier. You simply put the name of the cookie in the argument. The corresponding value is a string. The only time it gets complicated is when you use keys (which I demonstrate below). <%@LANGUAGE="JavaScript"%> <% var Tomorrow=new Date() Tomorrow.setDate(Tomorrow.getDate() + 1) myExpire = (T...