ASPѧϰ£¬Äã×¼±¸ºÃÁËÂð£¿
ÈçºÎÁîÄãµÄÍøÕ¾“¶¯¸ÐÊ®×ã”
ÄúµÄÍøÕ¾ÊÇ·ñÈÔÒ»Èç¼ÈÍùµØ±£³Ö“¾²Ì¬”£¿Ä¿Ç°³Ê¼¸ºÎÔö³¤µÄ»¥ÁªÍøÍøÕ¾ÖУ¬ÓÐÏ൱һ²¿·ÖÈÔ¹ÌÊØ“¾²Ì¬”£¬ÎÞÐÎÖÐÒÑ´ó´óÂäºóÓÚʱ´úµÄ²½·¥¡£Ëùν“¾²Ì¬”Ö¸µÄ¾ÍÊÇÍøÕ¾µÄÍøÒ³ÄÚÈÝ“¹Ì¶¨²»±ä”£¬µ±Óû§ä¯ÀÀÆ÷ͨ¹ý»¥ÁªÍøµÄHTTP£¨Hypertext Transport Pr otocol£©ÐÒéÏòWEB·þÎñÆ÷ÇëÇóÌá¹©ÍøÒ³ÄÚÈÝʱ£¬·þÎñÆ÷½ö½öÊǽ«ÔÒÑÉè¼ÆºÃµÄ¾²Ì¬HTMLÎĵµ´«Ë͸øÓû§ä¯ÀÀÆ÷¡£ÆäÒ³ÃæµÄÄÚÈÝʹÓõĽö½öÊDZê×¼µÄ HTML´úÂ룬×î¶àÔÙ¼ÓÉÏÁ÷ÐеÄGIF89A¸ñʽµÄ¶¯Ì¬Í¼Æ¬£¬±ÈÈç²úÉú¼¸Ö»Ð¡¹·Ð¡Ã¨ÅÜÀ´ÅÜÈ¥µÄ¶¯»Ð§¹û¡£ÈôÍøÕ¾Î¬»¤ÕßÒª¸üÐÂÍøÒ³µÄÄÚÈÝ£¬¾Í±ØÐëÊÖ¶¯µØÀ´¸üÐÂÆäËùÓеÄHTMLÎĵµ¡£
“¾²Ì¬”ÍøÕ¾µÄÖÂÃüÈõµã¾ÍÊDz»Ò×ά»¤£¬ÎªÁ˲»¶Ï¸üÐÂÍøÒ³ÄÚÈÝ£¬Äã±ØÐë²»¶ÏµØÖظ´ÖÆ×÷HTMLÎĵµ£¬Ëæ×ÅÍøÕ¾ÄÚÈݺÍÐÅÏ¢Á¿µÄÈÕÒæÀ©Ôö£¬Äã¾Í»á¸Ðµ½¹¤×÷Á¿´óµÃ³öºõÏëÏó¡£
Äã²»½ûÒªÎÊ£ºÄÇôʲôÊǶ¯Ì¬ÍøÕ¾ÄØ£¿Õâ¾ÍÊDZ¾ÎĽ«Öص㽲ÊöµÄºËÐÄ£¬Ëùν“¶¯Ì¬”£¬²¢²»ÊÇÖ¸ÄǼ¸¸ö·ÅÔÚÍøÒ³ÉϵÄGIF¶¯Ì¬Í¼Æ¬£¬ÔÚÕâÀï±ÊÕßΪ¶¯Ì¬Ò³ÃæµÄ¸ÅÄîÖÆ¶¨ÁËÒÔϼ¸Ìõ¹æÔò£º
1¡¢“½»»¥ÐÔ”¼´ÍøÒ³»á¸ù¾ÝÓû§µÄÒªÇóºÍÑ¡Ôñ¶ø¶¯Ì¬¸Ä±äºÍÏìÓ¦£¬½«ä¯ÀÀÆ÷×÷Ϊ¿Í»§¶Ë½çÃæ£¬Õ⽫ÊǽñºóWEB·¢Õ¹µÄ´óÊÂËùÇ÷¡£
2¡¢“×Ô¶¯¸üД¼´ÎÞÐëÊÖ¶¯µØ¸üÐÂHTMLÎĵµ£¬±ã»á×Ô¶¯Éú³ÉеÄÒ³Ãæ£¬¿ÉÒÔ´ó´ó½ÚÊ¡¹¤×÷Á¿¡£
3¡¢“ÒòʱÒòÈ˶ø±ä”£¬¼´µ±²»Í¬µÄʱ¼ä¡¢²»Í¬µÄÈË·ÃÎÊÍ¬Ò»ÍøÖ·Ê±»á²úÉú²»Í¬µÄÒ³Ãæ£¬ÊDz»ÊǺܿ᣿
ÏÖÔÚÄãÒѾ¶Ô“¶¯Ì¬”ÍøÕ¾ÓÐÁËÒ»¸ö»ù±¾µÄ¸ÅÄ½ÓÏÂÀ´Ó¦ÌôÑ¡³ÆÊֵē±øÈДÁË¡£½«ÍøÕ¾“¶¯Ì¬”»¯µÄ·½·¨ºÜ¶à£¬ÕâÒª¿´ÄãÊdzöÓÚºÎÖÖÐèÇó¡£Èç¹ûÄãÊǸöÈËÍøÕ¾µÄά»¤Õߣ¬Ê¹ÓõÄÊÇÃâ·ÑÖ÷Ò³¿Õ¼ä£¬ÄÇô¾ø´ó¶àÊýÇé¿öÏÂÄãÖ»ÄÜʹÓÃJava¡¢Java ScriptºÍ×îеÄDHTML¼¼Êõ£¬Èç¹ûÄãµÄÖ÷Ò³¿Õ¼äÌṩÕßÄܸøÓèÄãCGIȨÏÞ»òASPÖ§³Ö£¬ÄÇôÄ㽫Äܷdz£ÐÒÔ˵ط¢»ÓÕæÕýµÄ¶¯Ì¬¼¼Êõ¡£¹ØÓÚCGIºÍASP¼¼Êõ½«ÔÚºóÃæµÄ×ÅÖØÌÖÂÛ£¬ÕâÀïÕë¶Ô¸öÈËÍøÕ¾½ö¾Í×îеÄDHTML¼¼Êõ½øÐÐÖØµã½éÉÜ¡£
¾¿¾¹Ê²Ã´ÊÇDHTML£¿ËüÓ봫ͳµÄHTMLÓÐʲô²»Í¬£¿DHTML¾ÍÊǵ±ÍøÒ³´ÓWEB·þÎñÆ÷ÏÂÔØºóÎÞÐëÔÙ¾¹ý·þÎñÆ÷µÄ´¦Àí£¬¶øÔÚä¯ÀÀÆ÷ÖÐÖ±½Ó¶¯Ì¬µØ¸üÐÂÍøÒ³µÄÄÚÈÝ¡¢ÅŰæÑùʽ¡¢¶¯»¡£±ÈÈ磬µ±Êó±êÒÆÖÁÎÄÕ¶ÎÂäÖУ¬¶ÎÂäÄܹ»±ä³ÉÀ¶É«£¬»òÕßµ±Äãµã»÷Ò»¸ö³¬Á´ºó»á×Ô¶¯Éú³ÉÒ»¸öÏÂÀʽµÄ×Ó³¬Á´Ä¿Â¼¡£Õâ¾ÍÊÇ Dynamic HTML£¨¶¯Ì¬HTML£©£¬ËüÊǽüÄêÀ´ÍøÂç·ÉËÙ·¢Õ¹½
Ïà¹ØÎĵµ£º
<%
'ÒÔϲ¿·ÖÊÇÑéÖ¤Ìá½»µÄpageÊÇ·ñΪºÏ·¨µÄ²ÎÊý
'Õⲿ·Ö×îºÃÅжÏÒ»ÏÂÌá½»µÄ²ÎÊýÊÇ·ñΪÊýÖµ×Ö·û
dim page
page=Trim(request("page"))
If page="" Then
page=1
Elseif CInt(page)<=0 then
page=1
else
page=CInt(page)
End If
'½øÐвéѯ£¬È¡³öÒªÏÔʾµÄ¼Ç¼
str=rs1("content")
'°Ñ³ö ......
aspÖеöÈ¡Õûº¯ÊýÊÇ£ºfix(),int(),round();
Int(number)¡¢Fix(number)º¯Êý·µ»ØÊý×ÖµÄÕûÊý²¿·Ö¡£number ²ÎÊý¿ÉÒÔÊÇÈÎÒâÓÐЧµÄÊýÖµ±í´ïʽ¡£Èç¹û number ²ÎÊý°üº¬ Null£¬Ôò·µ»Ø Null¡£
Àý£º
response.write int(2.14) '2
response.write fix(2.14) '2
response.write int(2.54) '2
response.write int(2.54) '2
&nbs ......
asp,asp.net,php,jspϵÄ301תÏò´úÂë
ʹÓÃ.htaccessÎļþÀ´½øÐÐ301ÖØ¶¨Ïò¡£
Èç¹û¿Õ¼ä²»Ö§³Ö.htaccessÎļþ£¬ÄÇôÎÒÃÇ»¹¿ÉÒÔͨ¹ýphp/asp´úÂëÀ´½øÐÐ301ÖØ¶¨Ïò¡£
ΪÁ˽«ËÑË÷ÒýÇæµÄ¼Ç¼¸üе½ÏÖÔÚµÄÓòÃûÉÏÃæ,×öÁ˼¸¸ö301ÖØ¶¨ÏòµÄ¶«¶«,¸ø´ó¼Ò·ÖÏíÒ»ÏÂ.
asp 301תÏò´úÂë
ÔÚ index.asp »ò default.asp µÄ×î¶¥²¿¼ÓÈëÒÔ ......
¶ÔÓÚÒ»¸öÏëѧºÃASP¼°asp.netµÄ¹ýÀ´ÈËÀ´Ëµ,ѧϰµÄ¹ý³ÌÊÇÓÐȤ¼°ÕÛÄ¥È˵Ä,µ±Äã×ö³öµÚÒ»¸öʵÑéµÄʱºòÄãµÄÐÄÇéÊǼ¤¶¯µÄ,ÎÒÊDZÏÒµÒÔÀ´Ò»²½Ò»²½µÄ×Ôѧ¹ý³ÌÖÐ×ܽáÁËһЩºÃµÄ¾ÑéÈÿ´µ½ÕâÆªÎÄÕµÄÈËÉÙ×ßһЩÍä·,ÏÂÃæÐ´µÄ¶¼ÊÇÕë¶Ô³õѧÕß,Ò²ÊÇÎÒ×Ô¼ºÊÇÔõô´ÓÁã»ù´¡µ½ÏÖÔÚ¿ÉÒÔ¿ª·¢Ò»Ð©¶«Î÷µÄ¹ý³Ì.
&nb ......
×Ô¶¯Ê¶±ðIP,²¢Ìø×ªµ½À´·ÃÎÊÕßËùÔڵijÇÊÐ
ÏÈÈ¥ÏÂÒ»¸ö×îеĴ¿ÕæIPÊý¾Ý¿â,È»ºó°´ÈçϲÙ×÷:
1.ÔËÐд¿ÕæQQIPÊý¾Ý¿âÀï´øµÄShowIP.exe£¬µã½âѹ£¬ÊäÈëÎļþÃû£¬±ÈÈçIP.txt£¬È·¶¨£¬¾ÍµÃµ½Ò»¸öTXTÎļþ¡£
2.´ò¿ªACCESS£¬¹¤¾ß£×Ô¶¨Ò壬ÃüÁîÑ¡Ï£¬°Ñµ¼ÈëÑ¡ÏîÍ϶¯µ½ÉÏÃæµÄ¹¤¾ßÀ¸¡£
3.½¨¿â£¬½¨Ò»¸ö±í£¬Ëĸö×Ö¶Î
Startip ÀàÐÍ:ÎÄ ......