程序人生

使用FSO把文本信息导入数据库

在开发WEB应用程序中,我们经常需要对文件系统中的驱动器、文件夹和文件进行处理,比如收集驱动器的相关信息;创建、添加、移动或删除文件夹和文件等。在VB6中新提供了一套称为...

程序人生

文件遍历排序函数

% function bianli(path) 'initiate path = server.mappath(path) set fso=server.CreateObject(scripting.filesystemobject) set objFolder=fso.GetFolder(path) set objfiles = objfolder.files '把文件名及文件路经存入theFiles数组 int slot...

程序人生

ASP常用函数:ArrayToxml

% PublicFunctionArrayToxml(DataArray,Recordset,row,xmlroot) Dimi,node,rs,j Ifxmlroot=""Thenxmlroot="xml" SetArrayToxml=Server.CreateObject("msxml2.FreeThreadedDOMDocument"nbsp;MsxmlVersion) ArrayToxml.appendChild(ArrayToxml.createElement(xml...

程序人生

asp中向文本框输出数据原样式的函数

从数据库输出信息时有转换函数,可以将回车空格按原样式输出。这段代码可向文本框原样输出代码。 复制代码 代码如下: Functioncc_f_textarea_html_encode(cc_f_t_h_e_str) IfNotIsNull(cc_f_t_h_e_str)A...

程序人生

TSYS一个新闻多种特性时如何进行前台更新?

ACCESS数据库用的方法: Instr(','+Speciality+',',',2,')0 完整的代码如下: 复制代码 代码如下: FunctionUpdate08() DimTemplateFilePath TemplateFilePath=Server.MapPath("../../../default.htm") DimTClass,strHtml SetTClass=NewTkl...

程序人生

从文本文件中读取信息并存储入数据库

% dimfso,f1 ConstForReading=1 setfso=createobject("Scripting.FileSystemObject") ''使用fso对象读取信息。 setf1=fso.OpenTextFile("E:\doit\info2.txt",ForReading) ''打开要读取的文件 dimconn,rst setconn=server.createobject("adodb...

程序人生

ASP编程入门进阶(二):认识表单

说实话,无论是asp,php还是jsp进行网络编程的时候,都离不开和用户的交互。 而人机对话的平台,基本上是靠相应的文本、列表框进行输入,然后通过按钮提交送至数据库的。 所以学习...