aspÉú³ÉexcleÎĵµºóÏÂÔØ
¾ßÌåʵÏÖÕâÑùЧ¹û£¬
ÎÒ·ÃÎÊ Ò»¸ö´øÓвÎÊýµÄÒ³Ãæ
Èç £º 1.asp?id=1
Ïë¸ù¾Ý´«µÝµÄ²ÎÊý ¶ÁÈ¡ÏàÓ¦µÄÎÄÕÂÈ»ºóÉú³É excleÎĵµ ²¢ÇÒ Ö±½ÓÏÂÔØÏÂÀ´¡£±ÈÈç Éú³ÉµÄ excle ½Ð love.xls
µ±ÎÒ·ÃÎÊ 1.asp?id=1 µÄʱºò Ö±½Ó±Ä³öÀ´µÄ¾ÍÊÇ love.xls
ÒÉÎʾÍÔÚÕâÀïÀ´£¬Èç¹ûÎÒÖ±½ÓÉú³É love.xlsºó°ÑµØÖ·´«³öÀ´¸øÓû§ÏÂÔØ ÄÇѸÀ×ÉϳöÏֵĵØÖ·¾ÍÊÇ ÓòÃû£«love.xls
ÏëʵÏÖµÄÊÇ Ñ¸À×ÉϵØÖ·³öÏÖµÄÊÇ ÓòÃû+1.asp?id=1 ¶øÊµ¼ÊÏÂÔØÏÂÀ´µÄÊÇlove.xls ÇëÎÊÈçºÎʵÏֵģ¿
ÏÂÔØµÄÃû×Ö¿ÉÒÔ×Ô¼ºÐ´µÄ¡£ÕýÈçÂ¥ÉϵĴúÂ룬
.AddHeader "Content-Disposition","attachment; filename=abc.com_love.xls"
mark
¸Õ¸ÕÊÔÁËһϣ¬Server.Transfer Êä³öÎļþ£¬ÓÃѸÀ×ËÆºõÏÂÔØ²»ÁË
ѧϰһÏÂ
mark
ÎÒ»¹ÒÔΪ×Ô¼ºÃèÊö»á²»×¼È·ÄØ£¬Ã»Ïëµ½ hookee »Ø´ðµÄÕæºÃ
ÎÒ²âÊÔÁË ÍêÈ«·ûºÏÎÒµÄÒªÇóлл£¬ÓÐÒ»µãµã ¾ÍÏñ lzp4881 ˵µÄ£¬Ñ¸Àײ»»á×Ô¶¯µ¯³ö£¬ÐèÒªÓÒ¼üµãÓÃѸÀ×ÏÂÔØËü²Å¿Ï³öÀ´£¬ÄÜʵÏÖÒ»µãËü ѸÀ׾ͱijöÀ´¾Í¸üºÃÁË¡£
Ïà¹ØÎÊ´ð£º
ÎÒÔ±¾ÊÇѧjspµÄ¿ÉÕÒÁËÒ»¸öASPµÄ¹«Ë¾£¡ÎÒÒªÖØÐÂѧϰ£¡ ѧϰASP£¡ Ï£Íû´ó¼ÒÍÆ¼öÒ»±¾ºÃÊ鏸ÎÒлл
<ASP3.0¸ß¼¶±à³Ì> ÍøÉÏÓеç×Ó°æµÄ
·¢ÏÖÍøÉÏaspÐÅϢʱ×î¶àµÄ ±ÈÆäËûµÄ¶¼¶àºÃ¶à
yun
ÕÒ±¾ÓÐÓ¦ÓÃÊÂÀýµÄA ......
ÎÒµÄ網頁´ú碼為ASP語ÑÔ,驗證·½Ê½為ϵ統×Ô帶µÄWINDOW驗證ģʽ.
現ÔÚÎÒÈç¹ûÒªÔÚASP´ú碼ÖÐ獲È¡當ǰµÄµÇÈëÈË ......
½¨ÁËÒ»¸öÕ¾µã£¬ÀïÃæÓÐ login.aspx. events.aspx µÈµÈ ÆäËûµÄÒ³Ãæ¡£
µ«ÊÇÎÒµ÷ÊÔ ÆäËûÒ³ÃæµÄʱºò£¬±Ä³öÀ´µÄ×ÜÊÇ login.aspx Ò³Ãæ¡£
¸Õѧasp ÇëÖ¸½Ì
ÄãÉèÖÃÆðʼҳÁ˰ɡ£¡£
¶÷ÔõôȡÏûÄØ£¿
Òªµ ......
ÎÒÏëÓÃaspд¸öÒ³ÃæÒÔǰûÓнӴ¥¹ý£¬ÎÒ¿´ÍøÉÏ˵aspµÄÔËÐл·¾³Ö»ÄÜÊÇwindows£¬»¹±ØÐëҪװIIS¡£
Çë½Ì¸÷λ¸ßÊÖ£¬asp»¹ÓÐÆäËûµÄÔËÐл·¾³Âð?
²î²»¶à¾ÍÕâЩÁË£¬¾ÍÊÇIISÒ»¶¨Òª×°ºÃ
»¹ÓÐÒªÊÇÓÃVS2005µÄ»°ºÃÏñ¿ÉÒÔÖ±½ÓÔ ......
ÎÒÕÒÁËÒ»¸öα¾²Ì¬´úÂ룬ÈçÏ£º
index.asp
<!--#include file="config.asp"-->
<ol>
<%
Set rs=server.CreateObject("adodb.recordset") & ......