Quantcast
Channel: 程序猿的那点事 » asp
Browsing latest articles
Browse All 3 View Live

ASP处理传递参数的编码问题

今天在测试用Google自定义搜索做的一个搜索引擎是发现一个问题: 通过搜索框提交一个查询如下 http://localhost/search.asp?stype=NetDisk&site=Kuai&q=地方税务局 在搜索页面进行处理是出现了一个问题,也就是Request获取到的参数显示出来是 “地方税务口口”...

View Article



ASP函数实现HTML代码转JS脚本

asp函数html转js函数   'html转js函数 function htmltojs(str) dim tojs,i str = Replace(str, Chr(10), "") str = Replace(str, Chr(32) & Chr(32), "") str = Split(str, Chr(13)) tojs="" For i = 0 To...

View Article

新手asp编程的基本法则

一、新手常犯的错误 在论坛看到很多帖子代码中都有一个共同的基本错误,字段类型错误。 程序和数据库是紧紧相连的,数据库字段文本型或时间型的都使用单引号 比如下面这段修改语句: conn.execute “update Counts set counts=’”&counts&”‘ where num=”&num&” and...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images