Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÎÒдµÄÒ»¸öaspÉÏ´«×é¼þ

¡¡¡¡ÍøÉÏÁ÷´«µÄÖÖÖÖaspÉÏ´«ÀàÕæÊÇÌ«·³ËöÁË£¬ÎÒ×Ô¼ºÐ´ÁËÒ»¸öÉÏ´«Àà¡£Õâ¸öÉÏ´«ÀàÌå»ýºÜС£¬Ö»ÊÊÓÃÓÚµ¥ÎļþÉÏ´«£¬·µ»Ø½á¹ûÊÇÒ»¸öjson£¬¸ñʽΪ£º{"err":"³ö´íÔ­Òò","msg":"ÉÏ´«ÎļþµÄµØÖ·"}£¬ÀýÈ磺{"err":"\u6587\u4EF6\u592A\u5927\u4E86\2C\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7200K","msg":""}
»òÕß{"err":"","msg":"uploadfile/201013/7897896786.zip"}
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit
Response.Buffer = True
response.charset = "gb2312"
Const uploadfolder="uploadpic"
Const allowExt="jpg,jpeg,gif,png,rar,doc,zip,xls,pdf,swf,avi,mp3,txt,htm,html"
Function BytestoStr(filestr)
dim skipflag : skipflag = 0
dim varlen,clow,i
dim content : content = ""
if not isnull(filestr) then
varlen = lenb(filestr)
for i=1 to varlen
if skipflag=0 then
clow = midb(filestr,i,1)
if ascb(clow) > 127 then
content = content & chr(ascw(midb(filestr,i+1,1) & clow))
skipflag = 1
else
content = content & chr(ascb(clow))
end if
else
skipflag = 0
end if
next
end if
BytestoStr = content
End Function
Function getFilepath(ext)
dim folderpath,fso,filename
folderpath=server.mappath(uploadfolder)
set fso=server.createobject("Scripting.FileSystemObject")
if Fso.FolderExists(folderpath)=false then fso.CreateFolder(folderpath)
folderpath=folderpath&"\"&replace(replace(date(),"/",""),"-","")
fileinfo=uploadfolder&date()
if Fso.FolderExists(folderpath)=false then fso.CreateFolder(folderpath)
filename=cstr(timer()*100)&"."&ext
getFilepath=folderpath&"\"&filename
fileinfo=fileinfo&"/"&filename
set Fso=nothing
End Function
Function CheckExt(fileinfo)
dim re
set re=new


Ïà¹ØÎĵµ£º

vbºÍaspÈçºÎÓÃremote·ÃÎÊÔ¶³ÌÊý¾Ý¿â


Òý×Ô£ºhttp://blog.csdn.net/yizia/archive/2006/09/19/1248669.aspx
·ÃÎÊÔ¶³ÌÊý¾Ý¿âµÄÇé¿öÓÐÒÔϼ¸ÖÖ£º
1£©·ÃÎÊÔ¶³ÌÊý¾Ý¿âµÄaccessÊý¾Ý¿â
2£©·ÃÎÊÔ¶³ÌmssqlÊý¾Ý¿â»òoracleµÈÆäËû¹ØÏµÊý¾Ý¿â£¬µ«ÊÇÊý¾Ý¿âͨÐŶ˿ڱ»·À»ðǽ×èµ²»òÆäËûÍøÂçÔ­ÒòÔì³ÉÎÞ·¨Ê¹Óøö˿Ú
±¾ÎĽöÔÚwindows2000 advance server,mdac2.8ϲâÊÔͨ¹ý£ ......

aspÖеÄrs.openÓÚconn.executeµÄÇø±ð

aspÖеÄrs.openÓÚconn.executeµÄÇø±ð
    rs.open sql,conn£ºÈç¹ûsqlÊÇdelete,update,insertÔò»á·µ»ØÒ»¸ö¹Ø±ÕµÄ¼Ç¼¼¯£¬ÔÚʹÓùý³ÌÖв»ÒªÀ´¸örs.closeÔÚÎļþ×îºóÔÙдrs.close
    Öмä¿ÉÒÔÀ´¶à¸ö¼Ç¼¼¯rs1.open sql1,conn£¬×îºóÒ»¿é¹Ø±Õ¼Ç¼¼¯:rs.close rs1.close
    con ......

ASP´íÎóÐÅÏ¢½â¾ö·½·¨

1.´íÎóÐÅÏ¢
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server ²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø
Ô­Òò£º
2005ÀïËÆºõ²»Ö§³Ö“(local)”ºÍ“µã”½«Æä¸ÄΪ·þÎñÆ÷µÄÃû³Æ¡£
2000ÊÇ¿ÉÒԵġ£ËùÒÔ²»»á³öÏÖÕâÑùµÄÎÊÌâ¡£
2.´íÎóÐÅÏ¢
´íÎóÀàÐÍÒ»£º
Mi ......

ASP ±à³ÌÖÐ 20 ¸ö·Ç³£ÓÐÓõÄÀý×Ó

1.ÈçºÎÓÃAspÅжÏÄãµÄÍøÕ¾µÄÐéÄâÎïÀí·¾¶
´ð£ºÊ¹ÓÃMappath·½·¨
< p align="center" >< font size="4" face="Arial" >< b >
The Physical path to this virtual website is:
< /b >< /font >
< font color="#FF0000" size="6" face="Arial" >
< %= Server.MapPath("\")% >
......

ASP:rs.getRows()

±¾ÎÄת×Ô£ºhttp://hi.baidu.com/viewhainan/blog/item/663d68605e7de942ebf8f80a.html
GetRows()·½·¨
    Êǽ«Êý¾Ý´Ó Recordset ¸´ÖƵ½¶þάÊý×éÖУ¬ÕâÊÇÒ»¸ö¶þάÊý×飬µÚÒ»¸öϱê±êʶ×ֶΣ¬µÚ¶þ¸öÔò±êʶ¼Ç¼ºÅ£¬ËùÒÔ rsArray = rs.GetRows() rsArray(0, 0)¾Í±íʾ¼Ç¼¼¯µÚÒ»ÐеĵÚÒ»×Ö¶ÎÖµ rsArray(1, 0)¾Í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ