锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品人成无码中文毛片,亚洲av永久无码精品秋霞电影影院 ,亚洲制服丝袜第一页http://www.tkk7.com/xine/category/11747.html&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I love you not because of who you are,but because of who I am when I am with you.<br><br>zh-cnThu, 01 Mar 2007 01:29:37 GMTThu, 01 Mar 2007 01:29:37 GMT60ASP瀹炵幇鏂囦歡鐩存帴涓嬭澆http://www.tkk7.com/xine/articles/49709.html銆怷ine銆戜腑鏂囩珯銆怷ine銆戜腑鏂囩珯Thu, 01 Jun 2006 09:03:00 GMThttp://www.tkk7.com/xine/articles/49709.htmlhttp://www.tkk7.com/xine/comments/49709.htmlhttp://www.tkk7.com/xine/articles/49709.html#Feedback0http://www.tkk7.com/xine/comments/commentRss/49709.htmlhttp://www.tkk7.com/xine/services/trackbacks/49709.html
<%@聽language=vbscript聽codepage=65001%>

<%聽
'Filename聽must聽be聽input
if聽Request("Filename")=""聽then
聽response.write聽"<h1>Error:</h1>Filename聽is聽empty!<p>"
else
call聽聽downloadFile(replace(replace(Request("Filename"),"\",""),"/",""))聽聽聽聽

Function聽聽downloadFile(strFile)聽聽聽聽
'聽聽make聽聽sure聽聽you聽聽are聽聽on聽聽the聽聽latest聽聽MDAC聽聽version聽聽for聽聽this聽聽to聽聽work聽聽聽聽
'聽聽get聽聽full聽聽path聽聽of聽聽specified聽聽file聽聽聽聽
strFilename聽聽=聽聽server.MapPath(strFile)聽聽聽聽

'聽聽clear聽聽the聽聽buffer聽聽聽聽
Response.Buffer聽聽=聽聽True聽聽聽聽
Response.Clear聽聽聽聽

'聽聽create聽聽stream聽聽聽聽
Set聽聽s聽聽=聽聽Server.CreateObject("ADODB.Stream")聽聽聽聽
s.Open聽聽聽聽

'聽聽Set聽聽as聽聽binary聽聽聽聽
s.Type聽聽=聽聽1聽聽聽聽

'聽聽load聽聽in聽聽the聽聽file聽聽聽聽
on聽聽error聽聽resume聽聽next聽聽聽聽

'聽聽check聽聽the聽聽file聽聽exists
Set聽聽fso聽聽=聽聽Server.CreateObject("Scripting.FileSystemObject")聽聽聽聽
if聽聽not聽聽fso.FileExists(strFilename)聽聽then聽聽聽聽
Response.Write("<h1>Error:</h1>"&strFilename&"聽does聽not聽exists!<p>")聽聽聽聽
Response.End聽聽聽聽
end聽聽if

'聽聽get聽聽length聽聽of聽聽file聽聽聽聽
Set聽聽f聽聽=聽聽fso.GetFile(strFilename)聽聽聽聽
intFilelength聽聽=聽聽f.size聽聽聽聽

s.LoadFromFile(strFilename)聽聽聽聽
if聽聽err聽聽then聽聽聽聽
Response.Write("<h1>Error:聽</h1>Unknown聽Error!<p>")聽聽聽聽
Response.End聽
end聽聽if聽聽

'聽聽send聽聽the聽聽headers聽聽to聽聽the聽聽users聽聽Browse
Response.AddHeader聽聽"Content-Disposition","attachment;聽聽filename="&f.name聽聽聽聽
Response.AddHeader聽聽"Content-Length",intFilelength聽聽聽聽
Response.CharSet聽聽=聽聽"UTF-8"聽聽聽聽
Response.ContentType聽聽=聽聽"application/octet-stream"聽聽聽聽

'聽聽output聽聽the聽聽file聽聽to聽聽the聽聽browser聽聽聽聽
Response.BinaryWrite聽聽s.Read聽聽聽聽
Response.Flush聽聽聽聽

'聽聽tidy聽聽up聽聽聽聽
s.Close聽聽聽聽
Set聽聽s聽聽=聽聽Nothing聽聽聽聽

End聽聽Function聽聽聽聽
end聽if
%>聽聽聽聽聽聽

銆怷ine銆戜腑鏂囩珯 2006-06-01 17:03 鍙戣〃璇勮
]]>
ASP Connect Databasehttp://www.tkk7.com/xine/articles/49710.html銆怷ine銆戜腑鏂囩珯銆怷ine銆戜腑鏂囩珯Thu, 01 Jun 2006 09:03:00 GMThttp://www.tkk7.com/xine/articles/49710.htmlhttp://www.tkk7.com/xine/comments/49710.htmlhttp://www.tkk7.com/xine/articles/49710.html#Feedback0http://www.tkk7.com/xine/comments/commentRss/49710.htmlhttp://www.tkk7.com/xine/services/trackbacks/49710.html

銆鍒╃敤 ASP 榪炴帴鍚勭鏁版嵁搴?/span>

鐢?span lang="EN-US">ASP榪炴帴DBF銆?span lang="EN-US">DBC銆?span lang="EN-US">MDB銆?span lang="EN-US">Excel銆?span lang="EN-US">SQL Server鍨嬫暟鎹簱鐨勬柟娉曪細(xì)
涓銆?span lang="EN-US">ASP鐨勫璞″瓨鍙栨暟鎹簱鏂規(guī)硶
鍦?span lang="EN-US">ASP涓紝鐢ㄦ潵瀛樺彇鏁版嵁搴撶殑瀵硅薄緇熺ОADO錛?span lang="EN-US">Active Data Objects錛夛紝涓昏鍚湁涓夌瀵硅薄錛?span lang="EN-US">Connection銆?span lang="EN-US">Recordset 銆?span lang="EN-US">Command
Connection錛氳礋璐f墦寮鎴栬繛鎺ユ暟鎹?span lang="EN-US">
Recordset錛氳礋璐e瓨鍙栨暟鎹〃
Command
錛氳礋璐e鏁版嵁搴撴墽琛岃鍔ㄦ煡璇㈠懡浠?span lang="EN-US">

浜屻佽繛鎺ュ悇鏁版嵁搴撶殑椹卞姩紼嬪簭
榪炴帴鍚勬暟鎹簱鍙互浣跨敤椹卞姩紼嬪簭錛屼篃鍙互浣跨敤鏁版嵁婧愶紝涓嶈繃鎴戝緩璁ぇ瀹朵嬌鐢ㄩ┍鍔ㄧ▼搴忥紝鍥犱負(fù)浣跨敤椹卞姩紼嬪簭闈炲父鏂逛究銆佺畝鍗曪紝鑰屼嬌鐢ㄦ暟鎹簮姣旇緝楹葷儲銆?/span>

ODBC 閾炬帴

閫傚悎鏁版嵁搴撶被鍨?/span>

閾炬帴鏂瑰紡

access

"Driver={microsoft access driver(*.mdb)};dbq=*.mdb;uid=admin;pwd=pass;"

dBase

"Driver={microsoft dbase driver(*.dbf)};driverid=277;dbq=------------;"

Oracle

"Driver={microsoft odbc for oracle};server=oraclesever.world;uid=admin;pwd=pass;"

MSSQL server

"Driver={sql server};server=servername;database=dbname;uid=sa;pwd=pass;"

MS text

"Driver={microsoft text driver(*.txt; *.csv)};dbq=-----;extensions=asc,csv,tab,txt;Persist SecurityInfo=false;"

Visual Foxpro

"Driver={microsoft Visual Foxpro driver};sourcetype=DBC;sourceDB=*.dbc;Exclusive=No;"

MySQL

"Driver={mysql};database=yourdatabase;uid=username;pwd=yourpassword;option=16386;"

OLEDB 閾炬帴

閫傚悎鐨勬暟鎹簱綾誨瀷

閾炬帴鏂瑰紡

access

"Provider=microsoft.jet.oledb.4.0;data source=your_database_path;user id=admin;password=pass;"

Oracle

"Provider=OraOLEDB.Oracle;data source=dbname;user id=admin;password=pass;"

MS SQL Server

"Provider=SQLOLEDB;data source=machinename;initial catalog=dbname;userid=sa;password=pass;"

MS text

"Provider=microsof.jet.oledb.4.0;data source=your_path;Extended Properties'text;FMT=Delimited'"


鑰屾垜浠湪涓鑸儏鍐典笅浣跨敤Access鐨勬暟鎹簱姣旇緝澶氾紝鍦ㄨ繖閲屾垜寤鴻澶у榪炴帴Access鏁版嵁搴撲嬌鐢ㄤ笅闈㈢殑鏂規(guī)硶錛?/span>

dim conn
set conn = server.createobject("adodb.connection")
conn.open = "provider=microsoft.jet.oledb.4.0;" & "data source = " & server.mappath("../db/bbs.mdb")

鍏朵腑../db/bbs.mdb鏄綘鐨勬暟鎹簱瀛樻斁鐨勭浉瀵硅礬寰勶紒濡傛灉浣犵殑鏁版嵁搴撳拰ASP鏂囦歡鍦ㄥ悓涓鐩綍涓嬶紝浣犲彧瑕佽繖鏍峰啓灝卞彲浠ヤ簡錛?/span>

dim conn
set conn = server.createobject("adodb.connection")
conn.open = "provider=microsoft.jet.oledb.4.0;" & "data source = " & server.mappath("bbs.mdb")

鏈夎澶氬垵瀛﹁呭湪閬囧埌鏁版嵁搴撹繛鎺ユ椂鎬繪槸浼?xì)鍑洪棶棰樺Q岀劧鑰屼嬌鐢ㄤ笂闈㈢殑椹卞姩紼嬪簭鍙浣犵殑鏁版嵁搴撹礬寰勯夊浜嗗氨涓嶄細(xì)鍑洪棶棰樹簡銆?/span>



銆怷ine銆戜腑鏂囩珯 2006-06-01 17:03 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 色欲色香天天天综合网站免费| 成人亚洲国产va天堂| 中文字幕的电影免费网站| 国产精品无码一二区免费| 亚洲欧美乱色情图片| 日韩电影免费在线观看| WWW国产亚洲精品久久麻豆| 国产成人精品久久亚洲| 一级成人a免费视频| 成人爱做日本视频免费| 午夜亚洲乱码伦小说区69堂| 亚洲AV无码成人精品区大在线| 日韩大片在线永久免费观看网站| 久99精品视频在线观看婷亚洲片国产一区一级在线 | 中文字幕无码一区二区免费| 亚洲最新永久在线观看| 免费v片在线观看视频网站| 国产日本亚洲一区二区三区| 国产高清免费在线| 久青草视频在线观看免费| 久久亚洲精品中文字幕无码| 91嫩草免费国产永久入口| 亚洲爆乳少妇无码激情| 亚洲精品人成无码中文毛片 | 亚洲av乱码一区二区三区| 免费黄色大片网站| 一级做a爰片性色毛片免费网站| 亚洲日韩中文无码久久| 国内精品免费麻豆网站91麻豆| 在线亚洲午夜片AV大片| 少妇亚洲免费精品| 91成人在线免费视频| 亚洲精品天堂成人片AV在线播放| 亚洲毛片不卡av在线播放一区| 67pao强力打造高清免费| 久久久亚洲精华液精华液精华液| 久久久久久A亚洲欧洲AV冫| 免费福利网站在线观看| 成人午夜影视全部免费看| 亚洲高清无在码在线电影不卡| 国产精品久久香蕉免费播放|