asp教程

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

【asp教程】技术教程文章

ASP教程:gb2312和utf-8乱码问题解决

文章为转载:https://www.xp.cn/b.php/31663.html尊重作者版权今天做网站的时候,客户要一个博客,于是就利用了本博客所用的程序pjblog。经常做网站的人都知道,在同一个站点里使用不同编码的页面会产生乱码,比较常见的就是gb2312和Utf-8,比如我刚做的网站主站用的gb2312,博客用了utf-8,这样在访问时就出现乱码,以前给百货大楼的网站加一个调查问卷系统,就遇到了这个问题,当时捣鼓了很久才搞定。没想到今天又遇到这个,很欣...

ASP教程:ASP脚本循环语句

从本篇开始作者从 ASP 内建对象着手,为大家详细剖析 ASP 的六个内建对象和各种组件的特性和方法。   在正式开始学习 ASP 的内建对象和组件之前,先让我们来认识一些基本概念,这将对各位今后的学习大有帮助。请看下表 : Active Server随 Windows NT 交付的服务器方技术的集合。这些 技术为组件应用程序管理、数据库访问、事务和消息 提供一致的服务器方组件、脚本模型和一套集成的系 统服务。Active Server Pages (ASP)在服务器...

ASP教程:Global.asa文件的使用及Chat程序

在上一篇中作者给大家详细介绍了两个非常实用的 ASP 内建对象 Application 和 Session 的使用方法。由于这两者的 OnStart、OnEnd 事件的脚本都必须在 Global.asa 文件中声明 , 因此,本篇将给大家详细介绍 Global.asa 文件的使用方法。为使大家熟练掌握至今所学过的知识,本篇还将举出一个 ASP 的 Chat 程序,供各位参考。   最近很多朋友来信问我,为什么前两期的范例程序运行时有这样那样的错。首先,我要向大家声明,这些程序...

asp教程中get post提交表单有5点区别

asp教程中get post提交表单区别有以下5点 Get和Post方式的区别有5点 1. get是从服务器上获取数据,post是向服务器传送数据。 2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到这个过程。 3. 对于get方式,服务器端用Request.QueryString获取变量的...

javascript asp教程错误处理【代码】

The ASPError Object has zero (0) Methods, nine (9) Properties, zero (0) Events, and zero (0) Collections. AspCodeAspDescriptionCategoryColumnDescriptionFileLineNumberSourceThe way you access the ASPError Properties is with a Server Method. Yeah, I know; it doesn't make sense. Start with something like var myError=Server.GetLastError() and then you can access all nine ASPError Properties following ...

javascript asp教程创建数据库连接【代码】

While this section is devoted to ASP database utilization, it very important to remember that this web site is not intended to be a thorough ASP resource. Remember, the focus of this site is strictly limited to how to use JavaScript as your primary scripting language for ASP. Youll see how to construct connection strings in JavaScript, use JavaScript loops to manipulate recordsets, convert the Ja...

javascript asp教程Recordset记录【代码】

Recordset is another created/instanciated Object. It is a collection of data taken from a database. Recordset has 26 properties, 25 methods, 11 events, and two (2) collections. The vast majority of Recordset is beyond the scope of this web site. Quick Aside: The database we are using for lesson 16 and lesson 17 is an MS Access 2000 file (not the best database for large sites). The file is called...

javascript asp教程More About Recordsets【代码】

Below we will attempt to access data from a database without knowing the column names. Clearly the best way to utilize data in your database is to keep track of your schema. Schema is the layout of data in your database. The concept is well beyond the scope of this web site, but it is worth mentioning. Most good resources on SQL will also be good resources on database management. Better database s...

javascript asp教程添加和修改【代码】

The Connection Execute(): If you want to retrieve data from a database then you have no choice but to use a Recordset. However, for the purposes of adding, updating, and deleting data you dont necessarily have to have a Recordset. Its up to you. For the purposes of adding, updating and deleting you can avoid the Recordset by using the Execute() method. Get Started: Below is the script for Less...

javascript asp教程 日期相关【代码】

JavaScript is loosely typed. Database files are not. If you put text into a Boolean database column or a Boolean value into a date/time column, then you will get an error. For the most part this is not a problem, except for date/time. It does not correspond to the JavaScript Date Object. So, we have to tear Date apart and rebuild it from scratch. If we dont, then we get a type mismatch error. Ta...