锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品人成无码中文毛片,亚洲av永久无码精品秋霞电影影院 ,亚洲制服丝袜第一页http://m.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://m.tkk7.com/xine/articles/49709.html銆怷ine銆戜腑鏂囩珯銆怷ine銆戜腑鏂囩珯Thu, 01 Jun 2006 09:03:00 GMThttp://m.tkk7.com/xine/articles/49709.htmlhttp://m.tkk7.com/xine/comments/49709.htmlhttp://m.tkk7.com/xine/articles/49709.html#Feedback0http://m.tkk7.com/xine/comments/commentRss/49709.htmlhttp://m.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://m.tkk7.com/xine/articles/49710.html銆怷ine銆戜腑鏂囩珯銆怷ine銆戜腑鏂囩珯Thu, 01 Jun 2006 09:03:00 GMThttp://m.tkk7.com/xine/articles/49710.htmlhttp://m.tkk7.com/xine/comments/49710.htmlhttp://m.tkk7.com/xine/articles/49710.html#Feedback0http://m.tkk7.com/xine/comments/commentRss/49710.htmlhttp://m.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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 国产亚洲人成网站观看| 国产成人在线观看免费网站 | 亚洲国产精品一区二区三区在线观看| 日批视频网址免费观看| 国产亚洲精品自在线观看| yellow免费网站| 亚洲精品无码高潮喷水在线| 国产一级高青免费| 国产亚洲精品va在线| 国产白丝无码免费视频| 亚洲视频免费播放| 免费看大美女大黄大色| 无码天堂va亚洲va在线va| 亚洲福利在线播放| 久久国产精品免费一区| 亚洲人成色7777在线观看| 久久aⅴ免费观看| 亚洲1234区乱码| 国产成人免费a在线视频色戒| 人妻仑乱A级毛片免费看| 久久久久久a亚洲欧洲aⅴ| 免费无码又爽又刺激高潮视频 | 人人狠狠综合久久亚洲88| 日韩免费观看一区| 亚洲av日韩av无码av| 亚洲福利精品电影在线观看| a级精品九九九大片免费看| 亚洲午夜久久久精品影院| 在线观看视频免费国语| 一个人看的免费观看日本视频www 一个人看的免费视频www在线高清动漫 | 亚洲免费观看视频| 亚洲av无码片在线观看| 亚洲AV中文无码乱人伦在线视色| 国内精品免费久久影院| jlzzjlzz亚洲jzjzjz| 免费乱理伦在线播放| 久9久9精品免费观看| 国产成人综合亚洲一区| 亚洲AV无码久久寂寞少妇| 国产嫩草影院精品免费网址| 91在线免费观看|