
ASP技巧
东诩信科
这个作者很懒,什么都没留下…
展开
-
LINE9的目录浏览源程序
make sure you have the 6 dir_*.gif files! yes, you can copy ours if ya want too.. :) http://line9.com/img/dir_dir.gif .. etc.Function ShowImageForType(strName)strTemp = strNameIf strTemp strTemp =转载 2007-06-09 09:38:00 · 228 阅读 · 0 评论 -
域名登记查询(whois)很复杂吗--方法二
voodoo发表于 2000-06-03 22:42:07域名:www. ">. comnetorgcom.cn net.cn org.cn dim strResultif Request.ServerVariables("request_method")="POST" THENdim strQuery取得需要查询的域名strQuery=request("domainname") & ".转载 2007-06-09 09:40:00 · 249 阅读 · 0 评论 -
分页显示的例子(显示记录背景色替换变化)
Code Title: Paging (modifiable)Description: Add paging to your record retrieval. But, do it with the goodol form field that allows you to just type in directly what page ya wanna go to. This one is o转载 2007-06-09 09:41:00 · 212 阅读 · 0 评论 -
ASP 中的流控制能力
随着PHP4.0和JSP技术的推出以及IIS中不断出现的重大的安全问题,MicroSoft的ASP的市场仿佛是变的狭窄了,但是MicroSoft是不会轻言放弃的,于是在ASP2.0的基础上推出了ASP3.0,增加了一些新的功能:新的流控制能力、Data Shaping技术(请参考:http://www.aspcn.com/showarticle.asp?id=28)、无脚本 ASP 、更多的组件转载 2007-06-09 09:43:00 · 301 阅读 · 0 评论 -
用ASP创建多栏选项列表
首先,我们需要着重介绍一些概念,以给你提供一些使这个“奇迹”得以发生的组成部分。太轻易地泄露伏笔对于讲故事来说不是个好的形式,所以那些不愿意在一开始就看到就结局的人就应该在这里先走开一下。 这个综合体的第一部分是定宽字体的使用。Internet Explorer 和Netscape的两种标准定宽字体分别是 Courier New和Lucida Console。大部分的网页设计都不是完全转载 2007-06-09 09:48:00 · 248 阅读 · 0 评论 -
DUDU的无组件上传例程
##################################################################### 备注:我没有验证,提供给大家一种参考!请大家自行验证 欢迎大家发表你认为好的精彩程序代码 大风(xuankong) 2000。12。8 #########################################################转载 2007-06-09 09:54:00 · 203 阅读 · 0 评论 -
在ASP中使用Java类(Using Java Classes from ASP)
Using Java Classes from ASPCOM components arent the only way to use compiled code in your ASP applications. If youre familiar with Java, but have no way of wrapping your classes as COM objects (fo转载 2007-06-09 09:56:00 · 251 阅读 · 0 评论 -
怎样计算折扣
ENABLESESSIONSTATE = False %>Here we request the numeric percentages(%) ofdiscount, ie: 2, 5, 10, 20, etc.:percent_discount = "10"For multiplication, lets see if we need toadd a zero after the de转载 2007-06-09 09:59:00 · 390 阅读 · 0 评论 -
把长的数字用逗号隔开显示
Code Title: Proper NumberDescription: If you have a long number to display, then why not make it split the number up correctly with a comma?For example, the number 12345678 looks odd, right? Ok, let转载 2007-06-09 10:01:00 · 374 阅读 · 0 评论 -
浏览器语种检测,适合于多语言版本的站点
如果您的网站面向世界各地的冲浪者或者对外开展商贸活动,检测来访者的浏览器语言类型就非常现实了。这里提供的脚本可以检测流露;浏览器的语言类型,一般中文可以识别为“ZH”,英文版本的可以识别为“EN”,然后根据判断的浏览器语言类型导向不同语言版本的页面。当然你可以通过服务器端去解决这个问题,在客户端用这个脚本就可以了。你需要将代码放在HTML的区。然后做不同语言版本的页面即可。if (naviga转载 2007-06-09 10:10:00 · 312 阅读 · 0 评论 -
在ASP中改善动态分页的性能
概 述 ---- 现在有不少介绍利用ASP实现动态分页的文章,方法大同小异,就是每次利用ADO返回原始数据满足条件记录集中的指定页。但在实际工程应用中,原始数据量通常很大,原始数据的加工比较慢,如果每次换页原始数据都要加工一次,则会严重影响应用程序运行的性能。 ---- 解决上述问题主要有两种途径:一种途径是将查询条件相对固定,利用相对固定的查询条件对原始数据进行加工,生成一个小数据量的中间库,每转载 2007-06-09 10:11:00 · 213 阅读 · 0 评论 -
StripNonNumeric函数源程序
Function StripNonNumeric(strInput)Dim iPos, sNew, iTempstrInput = Trim(strInput)If strInput iPos = 1iTemp = Len(strInput)While iTemp >= iPosIf IsNumeric(Mid(strInput,iPos,1)) = True ThensNew = sNew &转载 2007-06-09 10:11:00 · 218 阅读 · 0 评论 -
如何对身份证的籍贯进行验证
我们在进行各种编程设计的时候,经常会遇到需要人员登记,但是对 人员登记的信息进行验证的手段却又非常的没有效果,因为我们很难判断一个人他的信息是否是真实的!我们只是尽可能的去查看一下他的信息。下面我们就来看看对身份证的一些简单的校as验1 2 3 4 5XX XXXX XXXXXX XX X 这个是没有升位以前的一个身份证号码的组成方式1 表示省 2 表示 地市 3 生日 4 顺序码 5转载 2007-06-09 10:16:00 · 513 阅读 · 0 评论 -
使用Server.scripttimeout来减少ASP意外错误而服务器瘫痪
我们在执行一些程序时, 比如论坛的递归, ASP程序常常会在意外之外执行出错. 此类意外发生率极少,但一旦发生, 则会使ASP代码产生不计其数的html或占用大量的服务器资源, 从而导致服务器效率下降甚至瘫痪. 此类错误一般为死循环, 直到脚本执行完毕才结束这恶梦般的错误. 解决此类问题的办法有: - 不要采用不稳定的代码, 但是很多代码是否稳定我们是很难确定的. 比如我的论坛系转载 2007-06-09 10:17:00 · 248 阅读 · 0 评论 -
使用ASP和Word进行服务器端拼写检查
本文讨论的问题与下列方面相关:Microsoft Word 97 for Windows Microsoft Visual InterDev, version 6.0 Microsoft Internet Information Server version 4.0 概要 本文描述了如何使用Microsoft Word在Web页面ASP文件中添加拼写检查功能。 详细的步骤 按照转载 2007-06-09 10:18:00 · 225 阅读 · 0 评论 -
检测整数和长整数的函数
经常见到cint和clng的溢出出错,如果有检测函数就不会出这个问题,下面这两个函数是应朋友要求写的,看一下吧检测字符串是否是整数function Is_Int(a_str)if not isnumeric(a_str) or len(str) > 5 thenIs_Int = false exit function elseif len(str) Is_Int = true exit fu转载 2007-06-09 10:20:00 · 238 阅读 · 0 评论 -
表示代码与逻辑代码分离
There is a nice section in the quickstart docs on this topic also. Click here to read up on it!Here is the code This example uses the following MS-SQL Server 7.0 database Stored Procedure Compon转载 2007-06-09 10:21:00 · 285 阅读 · 0 评论 -
一种比使用include adovbs.inc更好的方法
Using METADATA to Import DLL Constants One disadvantage of ASP is that when using a component, the components constants arent immediately avaialable. For example, if you want to use the ADO constant转载 2007-06-09 10:22:00 · 308 阅读 · 0 评论 -
页面延迟的两个简单方法
一、 Setup the variables necessary to accomplish the taskDim TimerStart, TimerEnd, TimerNow, TimerWait How many seconds do you want them to wait...TimerWait = 5 Setup and start the timersTimerNo转载 2007-06-09 10:24:00 · 396 阅读 · 0 评论 -
再论程序的执行速度的问题,(续asp,php和jsp 等动态编程)
大家好,我以前曾经写过一篇 几种动态编程语言的 比较的文章(具体情况请看:http://www.asp888.net/lanmu/viewarticle.asp?id=17),当时对 asp 的评分很低,因为当时的jsp 确实太好了,还没有一种技术在当时能赶得上jsp,现在 MS 推出的 .net 战略,以及相应的asp.net(就是asp+),改变了这种情况关于 asp+ 的其他的问题,豆腐转载 2007-06-09 09:51:00 · 261 阅读 · 0 评论 -
动态输入框的三个函数
Function cTextBox(name, value, size)Response.Write""&vbcrlfResponse.Write cTextBox("NAME", "1", "12") &vbcrlfEnd FunctionFunction cCheckBox(name, value, checked)Response.Write"If checked = 1 Then Resp转载 2007-06-09 09:58:00 · 209 阅读 · 0 评论 -
检测浏览器是否支持有Flash 0以上或有Flash插件
Set obJS = Server.CreateObject("MSWC.BrowserType")If obJS.javascript = TRUE ThenLook for a version of Internet Explorer that supports ActiveX (i.e., one thatsrunning on a platform other than Mac or转载 2007-06-09 10:00:00 · 326 阅读 · 0 评论 -
通过ASP在Flash中妙用Cookie
Written by: Günter HoffellnerTranslated by: Bernhard SpuidaFirst published: 9/8/2000Setting or reading cookies in Flash may be necessary for example to extend the personalization of a web site to th转载 2007-06-09 10:03:00 · 228 阅读 · 0 评论 -
在http和https之间转化
google_ad_client = "pub-9718468514884886";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad转载 2007-06-19 13:58:00 · 333 阅读 · 0 评论