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

ASP±à³Ì¼¼Êõ

ActiveConnection ÉèÖûò·µ»ØCommand¶ÔÏóµÄÁ¬½ÓÐÅÏ¢£¬¸ÃÊôÐÔ¿ÉÒÔÊÇÒ»¸öConnection¶ÔÏó»òÁ¬½Ó×Ö·û´®¡£
CommandText ÉèÖûò·µ»Ø¶ÔÊý¾ÝÔ´µÄÃüÁî´®£¬Õâ¸ö´®¿ÉÒÔÊÇSQLÓï¾ä¡¢±í¡¢´¢´æ¹ý³Ì»òÊý¾ÝÌṩÕßÖ§³ÖµÄÈÎ ºÎÌØÊâÓÐЧµÄÃüÁîÎı¾¡£
Prepared Ìá³öÔÚµ÷ÓÃCommand¶ÔÏóµÄExecute·½·¨Ê±£¬ÊÇ·ñ½«²éѯµÄ±àÒë½á¹û´¢´æÏÂÀ´¡£Èç¹û½«¸ÃÊôÐÔÉè ΪTrue£¬Ôò»á°Ñ²éѯ½á¹û±àÒë²¢±£´æÏÂÀ´£¬ÕâÑùÕëÓ°ÏìµÚÒ»´ÎµÄ²éѯËٶȣ¬µ«Ò»µ«Êý¾ÝÌṩÕß±àÒëÁËCommand¶Ô Ïó£¬Êý¾ÝÌṩÕßÔÚÒÔºóµÄ²éѯÖн«Ê¹ÓñàÒëºóµÄ°æ±¾£¬´Ó¶ø¼«´óµÄÌá¸ßÁËËÙ¶È
CommandTimeout ÉèÖÃÖ´ÐÐÒ»¸öCommand¶ÔÏóʱµÄµÈ´ýʱ¼ä£¬Ä¬ÈÏÖµÊÇ30Ãë¡£Èç¹ûÔÚÕâ¸öʱ¼äÄÚCommand¶ÔÏóû ÓÐÖ´ÐÐÍ꣬ÔòÖÕÖ¹ÃüÁî²¢²úÉúÒ»¸ö´íÎó
CommandType
Ö¸ÏòCommand¶ÔÏóµÄÀàÐÍ£¬È¡ÖµÈçÏ£º
1 »ò adCmdText:CommandText ÊÇÒ»¸öSQLÓï¾ä£»
2 »ò adCmdTable:CommandText ÊÇÒ»¸ö±íÃû£¬ADO»á²úÉúÒ»¸ö¶Ô¸Ã±íµÄ²éѯ£¬ÒÔ·µ»Ø¸Ã±íµÄÈ«²¿ÐкÍÁС£
4 »ò adCmdStoredProc:CommandText ÊÇÒ»¸ö´¢´æ¹ý³ÌÃû
8 »ò adCmdUnknown:ĬÈÏÖµ¡£ CommandTextÄÚÈÝÊÇδ֪µÄ
128 »ò adExecuteNoRecords:CommandText ÊÇÒ»¸ö²»·µ»Ø¼Ç¼¼¯µÄÃüÁî»ò´æ´¢¹ý³Ì¡£Èç¹û¿ÉÒÔÈ¡¼Ç¼£¬ÕâЩ¼Ç ¼½«±»¶ªÆú¡£¸ÃÖµ×ÜÊǺÍadCmdText»òadCmdStoredProcÒ»ÆðʹÓã»
256 »ò adCmdfile:CommandText ÊÇÒÑ´æÔڵļǼ¼¯µÄÎļþÃû£»
512 »ò adCmdTableDirect:CommandText ÊÇÒ»¸ö±í£¬ÔÚ²éѯÖиñíµÄÈ«²¿ÐкÍÁн«±»·µ»Ø
--------------------------------------------------------------------
Command ¶ÔÏóµÄ·½·¨
Cancel È¡ÏûÒ»¸öδȷ¶¨µÄÒì²½Ö´ÐеÄExecute·½·¨¡£Èç¹ûÖ´ÐÐExecute·½·¨Ê±Î´Ö¸¶¨adRunAsync²ÎÊý£¬Ôò Cancel·½·¨»á·µ»ØÒ»¸öÔËÐÐʱ´íÎó
CreateParameter ´´½¨Ò»¸öеÄParameter¶ÔÏó¡£Parameter¶ÔÏó±íʾ´«µÝ¸øSQLÓï¾ä»ò´¢´æ¹ý³ÌµÄÒ»¸ö²ÎÊý
Execute Ö´ÐÐÒ»¸öÓÉCommandTextÊôÐÔÖ¸¶¨µÄ²éѯ¡¢SQLÓï¾ä»ò´¢´æ¹ý³Ì¡£¸Ã·½·¨µ÷ÓÃËù·µ»ØµÄ¼Ç¼¼¯ÊǽöÏò Ç°ºÍÖ»¶ÁµÄÓαꡣÈç¹ûÏëµÃµ½ÆäËüÀàÐ͵ÄÓαê»òдÊý¾Ý£¬Ôò±ØÐèÒ»¸öRecordset¶ÔÏó²¢ÓÃOpen·½·¨´ò¿ª¼Ç¼¼¯¡£
¡¡
-------------------------------------------------------------------
Type µÄÊôÐÔ
adBigInt 20 °Ëλ·ûºÅÕûÊý
adBinary 128 ¶þ½øÖÆÖµ
adBoolean 11 ²¼¶ûÖµ
adBSTR 8 ÒÔ¿ÕÖµ½áÊøµÄUnicode×Ö·û´®
adChar 129 ×Ö·û´®Öµ
adCurrency 6 »õ±ÒÖµ£¬8×Ö½Ú³¤
adDate 7 ÈÕÆÚÖµ
adDBDate 133 ÈÕÆÚÖµ£¬


Ïà¹ØÎĵµ£º

aspÈçºÎÈ¥³ýhtml±ê¼Ç

·½·¨Ò» : ½ûÓÃHTML
×î¼òµ¥µÄ·½·¨ÊÇÖ±½Ó½ûÓÃhtml±êÇ©¶ø²»ÓÃÒƳýËüÃÇ. ¿ÉÒÔʹÓÃReplace()º¯Êý. ÀýÈç:
strText = Replace(strText, "<script", "&lt;script", 1, -1, 1)
»òÕßÖ±½Ó½ûÓÃËùÓеÄhtml: 
strText = Replace(strText, "<", "&lt;")
ÕâÑù×öËäÈ»ºÜ°²È«,µ«ÏԵò»¹»ÓѺÃ.(Óû§Ìá½»µÄÎı¾»á±äµ ......

AspÊý¾Ý²Ù×÷×é¼þ(°ÙÍò¼¶·ÖÒ³)(Ð޸İæ)

Ô­ÎÄÒýÓÃ:
http://www.17558.net/cmd.asp?act=tb&id=16&key=43840
Ô­ÎĵØÖ·:http://www.17558.net/post/16.html
żÊÇÒ»¸öµ×²ãµÄASP¼¼ÊõÈËÔ±(ÊôÓÚ°ë·³ö¼ÒµÄÄÇÖÖ,ÒÔÇ°ÊÇÒ»ÃûÍøÂç¼¼ÊõÈËÔ±),×î½ü²ÎÓëÖÆ×÷Ò»¸öCRMϵͳ,¼Ü¹»²ÉÓÃASP+SQL,¿¼Âǵ½ÒÔºóÊý¾Ý²éѯЧÂÊÎÊÌâ,ËùÒÔÔÚÍøÉÏÕÒÁËÒ»¸ö AspÊý¾Ý²Ù×÷×é¼þ(°ÙÍò¼¶·ÖÒ³) , ......

Request.ServerVariables ASP»·¾³ ·þÎñÆ÷±äÁ¿

±¾»úip[¿Í»§¶Ë]:
request.servervariables("remote_addr")
´ÓÄĸöÒ³Ãæתµ½µ±Ç°Ò³ÃæµÄ£º
Request.ServerVariables("HTTP_REFERER")
 µÃµ½±¾Ò³µØÖ·£º
<%="http://" + Request.ServerVariables("SERVER_NAME") + ":" + Request.ServerVariables("SERVER_PORT") + reques ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ