{"id":9247,"date":"2005-11-24T22:08:00","date_gmt":"2005-11-24T14:08:00","guid":{"rendered":"https:\/\/www.fuhaijun.com\/?p=9247"},"modified":"2005-11-24T22:08:00","modified_gmt":"2005-11-24T14:08:00","slug":"asp%e8%b0%83%e8%af%95%e5%b0%8f%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.fuhaijun.com\/?p=9247","title":{"rendered":"asp\u8c03\u8bd5\u5c0f\u7ed3"},"content":{"rendered":"<div id=\"Published By Juziyue-[4]2_4DEC12F2E64B42BEB3CA81247A3485E5_00FA9A0F13D54656A0B3E14C9A843562\">\n<p>1..asp\u7a0b\u5e8f\u8981\u653e\u5728iis\u7684\u865a\u62df\u76ee\u5f55\u4e0b\u624d\u80fd\u8fd0\u884c,\u5728iis\u91cc\u8bbe\u7f6e\u80fd\u533f\u540d\u8bbf\u95ee,\u8bfb\u53d6\u5e76\u53ef\u4ee5\u6267\u884c\u811a\u672c,\u5982\u679c\u60f3\u8981\u5f80\u670d\u52a1\u5668\u5199\u6570\u636e\u7684\u8bdd,\u6bd4\u5982\u8bf4fso\u8fd8\u8981\u6253\u5f00\u5199\u5165\u529f\u80fd,\u5982\u679c\u8981\u6267\u884ccgi\u7b49\u53ef\u6267\u884c\u7a0b\u5e8f,\u5982\u4e00\u4e9b\u8bed\u97f3\u804a\u5929\u5ba4\u7b49\u63d2\u4ef6,\u8fd8\u8981\u628a\u6267\u884c\u6743\u9650\u6253\u5f00.<\/p>\n<p>2.\u865a\u62df\u76ee\u5f55\u6700\u597d\u6307\u5b9a\u5728fat32\u4e0b,\u5982\u679c\u653e\u5230ntfs\u4e0b\u7684\u8bdd,\u6570\u636e\u5e93\u6587\u4ef6\u8981\u8ba9iis\u7528\u6237(\u4e00\u822c\u662fiusr_\u52a0\u4e0a\u4f60\u7684\u673a\u5668\u540d\u5b57)\u80fd\u5b8c\u5168\u8bbf\u95ee\uff0c\u5982\u679c\u662faccess\u6570\u636e\u5e93\u7684\u8bdd\uff0c\u8fd8\u8981\u8bbe\u7f6e\u6570\u636e\u5e93\u7684\u90a3\u4e2a\u6587\u4ef6\u5939\u7684\u6743\u9650\u8ba9iusr_\u5b8c\u5168\u8bbf\u95ee\uff0c\u56e0\u4e3aaccess\u6570\u636e\u5e93\u8fd8\u8981\u751f\u6210\u4e00\u4e2a\u4e34\u65f6\u7684.lib\u6587\u4ef6<\/p>\n<p>3.\u5982\u679c\u51fa\u4ec0\u4e48500\u9519\u8bef\u7684\u8bdd\uff0c\u5728\u6d4f\u89c8\u5668\u7684internet\u9009\u9879\/\u9ad8\u7ea7\u91cc\u628ahttp\u53cb\u597d\u63d0\u793a\u7684\u94a9\u53bb\u6389\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u4f60\u5199\u5927\u4ee3\u7801\u5230\u5e95\u662f\u90a3\u91cc\u51fa\u9519\u4e86\uff0c\u8fd9\u6837\u5c31\u5bb9\u6613\u627e\u5230\u9519\u8bef\u4e86<\/p>\n<p>4.\u5982\u679c\u64cd\u4f5c\u6570\u636e\u5e93\u51fa\u9519\u7684\u8bdd\uff0c\u53ef\u4ee5\u628a\u6267\u884csql\u7684\u5b57\u7b26\u4e32\u8bfb\u51fa\u6765\u770b\u770b\u5bf9\u4e0d\u5bf9\uff0c\u4f8b\u5982\uff1aresponse.write(strsql) 5.\u517b\u6210\u826f\u597d\u7684\u7f16\u7a0b\u4e60\u60ef\uff0c\u8868\u5355\u63d0\u4ea4\u524d\u5148\u7528js\u811a\u672c\u9a8c\u8bc1\uff0c\u53d8\u91cf\u6bd4\u8f83\u7684\u65f6\u5019\u8981\u663e\u5f0f\u8f6c\u6362\u6210\u540c\u4e00\u7c7b\u578b\uff0c\u7528option\u8bed\u53e5\uff0c\u786e\u4fdd\u53d8\u91cf\u5148\u58f0\u660e\u540e\u4f7f\u7528\uff0c\u4e0d\u8981\u5fd8\u8bb0\u663e\u5f0f\u5173\u95ed\u8bb0\u5f55\u96c6\uff0c\u6570\u636e\u5e93\u8fde\u63a5&#8230;&#8230;\u518d\u591a\u4e86\u5c31\u5f97\u81ea\u5df1\u591a\u591a\u4f53\u4f1a\u4e86\u3002<\/p>\n<p>\u4e0b\u9762\u6211\u518d\u8f6c\u4e24\u4e2a\u8c03\u8bd5\u7684\u51fd\u6570\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u8c03\u8bd5asp\u811a\u672c\u6709\u70b9\u7528\u5904\u54e6<\/p>\n<p>&lt;%&#8217;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8216; \u7a0b\u5e8f\u4f5c\u7528:\u6253\u5370request.form\u8f93\u5165\u7684\u6240\u6709\u503c&#8217;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>Response.Write FormData() function FormData() Dim llngMaxFieldIndex Dim llngFieldIndex Dim llngMaxValueIndex Dim llngValueIndex Dim lstrDebug &#8216; Count Form llngMaxFieldIndex = Request.Form.Count &#8216; Let user know if Form Do Not exist if llngMaxFieldIndex = 0 Then FormData = &#8220;Form data is empty.&#8221; Exit function End if &#8216; Begin building a list of all Form lstrDebug = &#8220;&lt;OL&gt;&#8221; &#8216; Loop through Each Form For llngFieldIndex = 1 To llngMaxFieldIndex lstrDebug = lstrDebug &amp; &#8220;&lt;LI&gt;&#8221; &amp; Server.HTMLEncode(Request.Form.Key(llngFieldIndex)) &#8216; Count the values llngMaxValueIndex = Request.Form(llngFieldIndex).Count &#8216; if the Field doesn&#8217;t have multiple values &#8230; if llngMaxValueIndex = 1 Then lstrDebug = lstrDebug &amp; &#8221; = &#8221; lstrDebug = lstrDebug &amp; Server.HTMLEncode(Request.Form.Item(llngFieldIndex)) &#8216; Else Loop through Each value Else lstrDebug = lstrDebug &amp; &#8220;&lt;OL&gt;&#8221; For llngValueIndex = 1 To llngMaxValueIndex lstrDebug = lstrDebug &amp; &#8220;&lt;LI&gt;&#8221; lstrDebug = lstrDebug &amp; Server.HTMLEncode(Request.Form(llngFieldIndex)(llngValueIndex)) lstrDebug = lstrDebug &amp; &#8220;&lt;\/LI&gt;&#8221; Next lstrDebug = lstrDebug &amp; &#8220;&lt;\/OL&gt;&#8221; End if lstrDebug = lstrDebug &amp; &#8220;&lt;\/LI&gt;&#8221; Next lstrDebug = lstrDebug &amp; &#8220;&lt;\/OL&gt;&#8221; &#8216; Return the data FormData = lstrDebug End function %&gt;<\/p>\n<p>&lt;% &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8216; \u51fd\u6570\u529f\u80fd\uff1a\u8f93\u51fa\u6240\u6709\u8f93\u5165request.querystring\u503c\uff0c\u7528\u4e8e\u8c03\u8bd5\uff01&#8217;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Response.Write QueryStringData() function QueryStringData() Dim llngMaxFieldIndex Dim llngFieldIndex Dim llngMaxValueIndex Dim llngValueIndex Dim lstrDebug &#8216; Count QueryString llngMaxFieldIndex = Request.QueryString.Count &#8216; Let user know if QueryString Do Not exist if llngMaxFieldIndex = 0 Then QueryStringData = &#8220;QueryString data is empty.&#8221; Exit function End if &#8216; Begin building a list of all QueryString lstrDebug = &#8220;&lt;OL&gt;&#8221; &#8216; Loop through Each QueryString For llngFieldIndex = 1 To llngMaxFieldIndex lstrDebug = lstrDebug &amp; &#8220;&lt;LI&gt;&#8221; &amp; Server.HTMLEncode(Request.QueryString.Key(llngFieldIndex)) &#8216; Count the values llngMaxValueIndex = Request.QueryString(llngFieldIndex).Count &#8216; if the Field doesn&#8217;t have multiple values &#8230; if llngMaxValueIndex = 1 Then lstrDebug = lstrDebug &amp; &#8221; = &#8221; lstrDebug = lstrDebug &amp; Server.HTMLEncode(Request.QueryString.Item(llngFieldIndex)) &#8216; Else Loop through Each value Else lstrDebug = lstrDebug &amp; &#8220;&lt;OL&gt;&#8221; For llngValueIndex = 1 To llngMaxValueIndex lstrDebug = lstrDebug &amp; &#8220;&lt;LI&gt;&#8221; lstrDebug = lstrDebug &amp; Server.HTMLEncode(Request.QueryString(llngFieldIndex)(llngValueIndex)) lstrDebug = lstrDebug &amp; &#8220;&lt;\/LI&gt;&#8221; Next lstrDebug = lstrDebug &amp; &#8220;&lt;\/OL&gt;&#8221; End if lstrDebug = lstrDebug &amp; &#8220;&lt;\/LI&gt;&#8221; Next lstrDebug = lstrDebug &amp; &#8220;&lt;\/OL&gt;&#8221; &#8216; Return the data QueryStringData = lstrDebug End function %&gt;<\/p>\n<p>\u5728asp.net\u8c03\u8bd5\u8ddf\u8e2a\uff0c\u9519\u8bef\u5904\u7406\u5c31\u66f4\u7b80\u5355\u4e86<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1..asp\u7a0b\u5e8f\u8981\u653e\u5728iis\u7684\u865a\u62df\u76ee\u5f55\u4e0b\u624d\u80fd\u8fd0\u884c,\u5728iis\u91cc\u8bbe\u7f6e\u80fd\u533f\u540d\u8bbf\u95ee,\u8bfb\u53d6\u5e76\u53ef\u4ee5\u6267\u884c\u811a\u672c,\u5982\u679c\u60f3\u8981\u5f80\u670d\u52a1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-9247","post","type-post","status-publish","format-standard","hentry","category-asp"],"_links":{"self":[{"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=\/wp\/v2\/posts\/9247"}],"collection":[{"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9247"}],"version-history":[{"count":0,"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=\/wp\/v2\/posts\/9247\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}