随笔分类 -  其它

摘要:版本:1.3官方网站:http://asptemplate.sourceforge.net/变量的定义: {{变量名}}1、首先调用模板的类2、声明新的模板变量,并创建dim tset t = New ASPTemplate3、设置模板存放路径,如果不设置则为默认的 "templates/"T.SetTemplatesDir(相对路径)4、设置要使用的文件文件,这个文件将从先前设好的路径中调用t.... 阅读全文
posted @ 2008-12-26 17:21 missthe 阅读(1158) 评论(0) 推荐(0)
摘要:1、国内某某人开发的,没有正式的项目名称: http://files.cnblogs.com/missthe/tpl.rar2、asptemplate,国外开源的程序,与第1个相比,使用时比较简单一点: http://files.cnblogs.com/missthe/asptemplate.rar 阅读全文
posted @ 2008-12-26 13:14 missthe 阅读(940) 评论(0) 推荐(0)
摘要:名称:file.Name所在路径:file.Path所在驱动器:file.Drive文件大小:file.size文件类型:file.type文件属性:file.Attributes创建日期:file.DateCreated 阅读全文
posted @ 2008-12-22 11:26 missthe 阅读(364) 评论(0) 推荐(0)
摘要:<%FunctionFormatStr(jnkcV) DimjnkcTmp,jnkcRegExp jnkcTmp=jnkcV&"" SetjnkcRegExp=newRegExp jnkcRegExp.IgnoreCase=True jnkcRegExp.Global=True jnkcRegExp.Pattern="""([^""]*)""" jnkcTmp=jnkcRegExp.... 阅读全文
posted @ 2008-12-11 22:06 missthe 阅读(943) 评论(0) 推荐(0)
摘要:文本区textbox里面的多行内容,如果要通过使用split分割每一行的内容作为一个单元。要用split(str, chr(13)&chr(10))。不然会莫名其妙的出错! 阅读全文
posted @ 2008-12-11 10:50 missthe 阅读(929) 评论(0) 推荐(0)
摘要:内容网络 整个网络上的相关网页 仅我定位的展示位置上的相关网页 阅读全文
posted @ 2008-11-22 07:07 missthe 阅读(421) 评论(0) 推荐(0)
摘要:function totalDays(yy,mm) dt=dateSerial(yy,mm,1) totalDays=datediff("d",dt,dateadd("m",1,dt)) end function response.write("年份","月份") 阅读全文
posted @ 2008-11-20 16:59 missthe 阅读(303) 评论(0) 推荐(0)
摘要:1.文本框只能输入数字代码(小数点也不能输入) 2.只能输入数字,能输小数点. 3.只能输入字母和汉字 4.只能输入英文字母和数字,不能输入中文 5.只能输入数字和英文chun 6.小数点后只能有最多两位(数字,中文都可输入),不能输入字母和运算符号: 57) && event.keyCode!=46 || /\.\d\d$/.test(value))event.returnValue=... 阅读全文
posted @ 2008-11-18 13:40 missthe 阅读(424) 评论(0) 推荐(0)
摘要:class Myobj public sub Link() response.Write"cxcxcx" end sub end class dim obj set obj=new Myobj obj.Link() set obj=nothing 阅读全文
posted @ 2008-10-27 22:36 missthe 阅读(241) 评论(0) 推荐(0)
摘要:第一步: 第二步: 源文件下载:http://files.cnblogs.com/missthe/change.rar 阅读全文
posted @ 2008-10-24 16:07 missthe 阅读(213) 评论(0) 推荐(0)
摘要:Function GetLocationURL() Dim Url Dim ServerPort,ServerName,ScriptName,QueryString ServerName = Request.ServerVariables("SERVER_NAME") ServerPort = Request.ServerVariables("SERVER_PORT") ScriptNa... 阅读全文
posted @ 2008-10-24 15:56 missthe 阅读(323) 评论(0) 推荐(0)
摘要:Function regExReplace(sSource, replStr) //(替换字符集,代替值) Dim regEx, str1 str1 = sSource Set regEx = New RegExp regEx.Pattern = "|" regEx.IgnoreCase = True regEx.Global = True regExReplace = regEx.R... 阅读全文
posted @ 2008-10-24 15:52 missthe 阅读(1163) 评论(0) 推荐(0)
摘要:调用范例: 编辑器源代码下载:http://files.cnblogs.com/missthe/HtmlEditor.rar 阅读全文
posted @ 2008-10-24 15:30 missthe 阅读(470) 评论(0) 推荐(0)
摘要:那样写: set rs=conn.execute("select * from Books") while not rs.eof rs2=conn.execute("select * from Authrs where AuthorID="&rs("AuthorID")) Response.write rs("Title")&">>"&rs2("Name") rs.movenext() ... 阅读全文
posted @ 2008-10-24 14:19 missthe 阅读(185) 评论(0) 推荐(0)
摘要:函数: Function CheckURL(byval A_strUrl) set XMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") XMLHTTP.open "HEAD",A_strUrl,false XMLHTTP.send() CheckURL=(XMLHTTP.status=200) set XMLHTTP = nothing End f... 阅读全文
posted @ 2008-10-24 13:34 missthe 阅读(342) 评论(0) 推荐(0)
摘要:在费时操作前使用Response.IsClientConnected属性 使用Response.IsClientConnected是观察用户是否仍连到服务器并正在载入ASP创建的网页的有用方式。如果用户断开连接或停止下载,我们就不用再浪费服务器的资源创建网页,因为缓冲区内容将被IIS丢弃。所以,对那些需要大量时间计算或资源使用较多的网页来说,值得在每一阶段都检查游览者是否已离线: 以下为引用的... 阅读全文
posted @ 2008-10-24 11:03 missthe 阅读(899) 评论(0) 推荐(0)
摘要:我们经常要在某一页面嵌入iframe页面。然后在运行iframe页面后让程序自动刷新父页面,以便运行结果及时显示在父页上。 JS代码即为: window.paren.location.reload(); 阅读全文
posted @ 2008-10-10 15:29 missthe 阅读(383) 评论(0) 推荐(0)
摘要:JS无间隔文字滚动代码(三种效果) 点此下载 阅读全文
posted @ 2008-09-26 14:08 missthe 阅读(9188) 评论(5) 推荐(0)
摘要:文章正文 阅读全文
posted @ 2008-08-21 15:04 missthe 阅读(271) 评论(0) 推荐(0)
摘要:源代码: 直接拷贝至需要显示的位置保存即可。 阅读全文
posted @ 2008-07-29 10:04 missthe 阅读(700) 评论(0) 推荐(0)