方法一:FSOSetfs=CreateObject('Scripting.FileSystemObject')NewFile=Server.MapPath('/asp/chap06/at/newfile.html')'新建一文件/newfile.html,若该文件已存在,则覆盖它... |
发表时间:2024-01-23 |
点击数:4 |
查看全文 |
usingSystem;usingSystem.Collections.Generic;usingSystem.Drawing;usingSystem.Linq;usingSystem.Web;usingSystem.Web.SessionState;namespaceProje... |
发表时间:2024-01-19 |
点击数:4 |
查看全文 |
Regex类表示不可变的正则表达式。命名空间:System.Text.RegularExpressionsRegex类包含若干static(在VisualBasic中为Shared)方法,使您无需显式创建Regex对象即可使用正则表达式。在.NETFramework2.0版中,将... |
发表时间:2024-01-19 |
点击数:2 |
查看全文 |
stringrequestClientIpAddress=HttpContext.Current.Request.ServerVariables['HTTP_X_FORWARDED_FOR'];if(string.IsNullOrEmpty(requestClientIpAddr... |
发表时间:2024-01-19 |
点击数:8 |
查看全文 |
%@LANGUAGE='VBSCRIPT'CODEPAGE='65001'%%Response.CodePage=65001%%Response.Charset='UTF-8'%%'该程序通过使用ASP的FSO功能,减少数据库的读取。经测试,可以减少90%的服务器负荷。页面访问速... |
发表时间:2024-01-16 |
点击数:9 |
查看全文 |
首先调用adodb.connection对象中的openSchema函数,这样会得到一个Recordset,其中每一条“纪录”对应着数据库中的一张表,“纪录”的每个“字段”包含了对应表的某方面信息。其中TABLE_NAME字段包含了对应表的名称然后遍历这个Recordset,如果... |
发表时间:2024-01-16 |
点击数:5 |
查看全文 |
Setrs=conn.Execute('SelectCount(*)As'Total'From表')Response.Writers('Total')... |
发表时间:2024-01-08 |
点击数:13 |
查看全文 |
%’列举使用HTML表单提交的所有值ForEachitemInRequest.FormResponse.WriteRequest.Form(item)Next%... |
发表时间:2024-01-08 |
点击数:11 |
查看全文 |
%'LastUpdatedByReconOn05/14/2001'OnErrorResumeNext'利用CDONTS组件在Win2k上发送邮件'发送普通邮件SendMail'[email protected]','[email protected]','NormalMail!','Please... |
发表时间:2024-01-08 |
点击数:8 |
查看全文 |
PrivatefunctionGetDbIpInfo(byValsql)DimOpenIpSearchRsDimresultSetOpenIpSearchRs=SQLExeCute(sql)IfNotOpenIpSearchRs.EofThenresult=NullToSpace... |
发表时间:2024-01-08 |
点击数:5 |
查看全文 |