ASP
hollo
这个作者很懒,什么都没留下…
展开
-
asp中动态使用include
dim content定义centent为变量content=request("sting")stringurl=contentfilespec = server.mapPath(stringurl)set fs = server.createobject("scripting.filesystemobject") set f = fs.openTextFile(filespec) co原创 2005-06-28 14:41:00 · 1117 阅读 · 4 评论 -
asp连接sqlserver数据库
conn.aspservername="(local)"服务器名user="sa"pw="sa"用户密码databasename="zunan"数据库名set conn=server.CreateObject("adodb.connection")conn.Open"DRIVER={SQL Server};SERVER="&servername&";UID="&user&";pwd="&p原创 2005-05-25 14:14:00 · 1938 阅读 · 2 评论 -
asp中使用简单的存储过程
由先在sqlserver中建立存储过程dbo.proaCREATE PROCEDURE dbo.proa @ini char(10)asselect aa from a where aa=@iniGO能后在asp中写入语句dim iniini="11"set rs=server.createobject("adodb.recordset")set comm=server.createobject(原创 2005-05-25 14:10:00 · 939 阅读 · 2 评论 -
asp and sqlserver check password
dim strUser dim strPassword dim ls_userid dim ls_pwd dim li_length dim ls_tmp response.write request.form response.end strUser=request("userID") strPassword=Trim(request("password")) if InStr(strUs原创 2005-06-20 14:24:00 · 951 阅读 · 0 评论 -
asp通过模板写excel
1,新建一个xls文件,xxx.xls2,xxx.asp Server.ScriptTimeOut =1000 on error resume next excelid=session("user")&year(date)&second(time)&".xls" response.write excelid abill = Split(Request("BillID")&",", ",")原创 2005-12-08 19:01:00 · 1692 阅读 · 1 评论