¹ØÓÚasp:FileUpload¿Ø¼þµÄÎÊÌâ
ÏÖÔÚÓÐasp:FileUpload¿Ø¼þ
ºÍÒ»¸öselectÏÂÀ¿ò£¨Ö÷ҪѡÔñÉÏ´«ÎļþÀàÐÍ£©£¬¼ÙÈçÎÒÑ¡ºÃÁËÒªÉÏ´«µÄÎļþÀàÐÍ£¨.xls£©£¬ÄÇôµã¡°ä¯ÀÀ¡±µÄʱºò¾ÍÖ»ÄÜÑ¡ *.xlsÎļþ£¬¶ø²»¿ÉÒÔÑ¡ÆäËüÎļþÀàÐÍ»ò*.*µÄÎļþ¡£ÇëÎÊ£¬ÄÜÐÞ¸Äasp:FileUpload¿Ø¼þÀïÃæµÄÄÚÈÝÂð£¿
º¹...²»ºÃÒâ˼,û·ÖÁË.
º¹...²»ºÃÒâ˼,û·ÖÁË.
ûÈËÖªµÀ¸Ä¿Ø¼þÀïµÄ´úÂëÂð?¾ÍÊÇÒªÉèÖÃDim allowedextensions As String()
html µÄ ¡°ä¯ÀÀÎļþ¡± ²»Ö§³Ö´Ë¹¦ÄÜ£¡
Ö»ÓÐ×Ô¼ºÅжÏÀ©Õ¹Ãû£¬ÒªÑϸñÇÒ°²È«£¬ÐèÒª·þÎñÆ÷ÅжÏÎļþÍ·
Â¥ÉϻشðÕýÈ·¡£
ÓÎÀÀÆ÷ÉϵÄfileuplaod²»ÄÜʵÏÖÄãÒªµÄ¹¦ÄÜ£¬ÄǸöwindows formÉϵĵ¹ÊÇ¿ÉÒÔ
ÎÒÊÇÒªÈÃÕâ¸öÏÂÀ¿òʧЧ£¬Ö»ÄÜÊÇ.xlsÎļþ. ÉÏ´«¶Ô»°¿òÀïÖ»ÏÔʾ.xlsÎļþ
¿´Ñù×ÓÕâÎÊÌâû·¨½â¾ö¿©
Ïà¹ØÎÊ´ð£º
<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'×¢Òâ±äÁ¿ ......
ÎÒÓÐÒ»¸öaspÔ´Â룬µ«ÊdzöÏÖÒ»¸öÎļþ£¬ÎÒÓÃasp½âÃܶ¼ÊÇÂÒÂë
Çë½Ì
VBScript code:
??
%# , #&')*)-0-(0%()(?
(((((((((((((((((((((((((( ......
ÎÒÏëÓÃaspд¸öÒ³ÃæÒÔǰûÓнӴ¥¹ý£¬ÎÒ¿´ÍøÉÏ˵aspµÄÔËÐл·¾³Ö»ÄÜÊÇwindows£¬»¹±ØÐëҪװIIS¡£
Çë½Ì¸÷λ¸ßÊÖ£¬asp»¹ÓÐÆäËûµÄÔËÐл·¾³Âð?
²î²»¶à¾ÍÕâЩÁË£¬¾ÍÊÇIISÒ»¶¨Òª×°ºÃ
»¹ÓÐÒªÊÇÓÃVS2005µÄ»°ºÃÏñ¿ÉÒÔÖ±½ÓÔ ......