ASP网站制作之浅谈主动收罗程序及进库
Windows本身的所有问题都会一成不变的也累加到了它的身上。安全性、稳定性、跨平台性都会因为与NT的捆绑而显现出来;收罗|程序|收罗<SPANid=ArticleContent1_ArticleContent1_lblContent><SPANstyle="FONT-SIZE:12px">比来网下流行着一些收罗程序,更多人拿着这些器材在网上叫卖,良多不太懂的人看着那些程序眼羡,实在假如你懂一些ASP,懂得主动收罗程序的道理后,你会感到完成主动化也是那末的复杂.<BR>道理及长处:经由过程XML中的XMLHTTP组件挪用别的网站上的网页,然后批量截取或交换原本的信息使其转化成变量后再逐一贮存到数据库中。其次要的长处即是无需再手工增加大批的信息了,能够指定对某一个站信息的截取举行批量录进,到达省时省力的目标。与其纯真的ASP小偷程序分歧的是:它已不再依附其方针网站。<BR>复杂事例:<BR><DIVstyle="BORDER-RIGHT:windowtext0.5ptsolid;PADDING-RIGHT:5.4pt;BORDER-TOP:windowtext0.5ptsolid;PADDING-LEFT:5.4pt;BACKGROUND:#e6e6e6;PADDING-BOTTOM:4px;BORDER-LEFT:windowtext0.5ptsolid;WIDTH:98%;WORD-BREAK:break-all;PADDING-TOP:4px;BORDER-BOTTOM:windowtext0.5ptsolid"><DIV><SPANstyle="COLOR:#008080">1</SPAN><SPANstyle="COLOR:#000000"><</SPAN><SPANstyle="COLOR:#000000">%<BR></SPAN><SPANstyle="COLOR:#008080">2</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">声明获得方针信息的函数,经由过程XML组件举行完成。</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">3</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#0000ff">Function</SPAN><SPANstyle="COLOR:#000000">GetURL(url)<BR></SPAN><SPANstyle="COLOR:#008080">4</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">Set</SPAN><SPANstyle="COLOR:#000000">Retrieval</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">CreateObject</SPAN><SPANstyle="COLOR:#000000">(</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">Microsoft.XMLHTTP</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)<BR></SPAN><SPANstyle="COLOR:#008080">5</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">With</SPAN><SPANstyle="COLOR:#000000">Retrieval<BR></SPAN><SPANstyle="COLOR:#008080">6</SPAN><SPANstyle="COLOR:#000000">.Open</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">GET</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">,url,</SPAN><SPANstyle="COLOR:#0000ff">False</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">7</SPAN><SPANstyle="COLOR:#000000">.Send<BR></SPAN><SPANstyle="COLOR:#008080">8</SPAN><SPANstyle="COLOR:#000000">GetURL</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">bytes2bstr(.responsebody)<BR></SPAN><SPANstyle="COLOR:#008080">9</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">对获得信息举行考证,假如信息长度小于100则申明截取失利</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">10</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#0000ff">if</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">len</SPAN><SPANstyle="COLOR:#000000">(.responsebody)</SPAN><SPANstyle="COLOR:#000000"><</SPAN><SPANstyle="COLOR:#000000">100</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">then</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">11</SPAN><SPANstyle="COLOR:#000000">response.write</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">猎取远程文件<ahref=</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">url</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">target=_blank></SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">url</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000"></a>失利。"</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">12</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">response.</SPAN><SPANstyle="COLOR:#0000ff">end</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">13</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">end</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">if</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">14</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">15</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">End</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">With</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">16</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">Set</SPAN><SPANstyle="COLOR:#000000">Retrieval</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">Nothing</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">17</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">EndFunction</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">18</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">二进制转字符串,不然会呈现乱码的!</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">19</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#0000ff">function</SPAN><SPANstyle="COLOR:#000000">bytes2bstr(vin)<BR></SPAN><SPANstyle="COLOR:#008080">20</SPAN><SPANstyle="COLOR:#000000">strreturn</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">""</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">21</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">for</SPAN><SPANstyle="COLOR:#000000">i</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">1</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">to</SPAN><SPANstyle="COLOR:#000000">lenb(vin)<BR></SPAN><SPANstyle="COLOR:#008080">22</SPAN><SPANstyle="COLOR:#000000">thischarcode</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">ascb(midb(vin,i,</SPAN><SPANstyle="COLOR:#000000">1</SPAN><SPANstyle="COLOR:#000000">))<BR></SPAN><SPANstyle="COLOR:#008080">23</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">if</SPAN><SPANstyle="COLOR:#000000">thischarcode</SPAN><SPANstyle="COLOR:#000000"><</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">h80</SPAN><SPANstyle="COLOR:#0000ff">then</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">24</SPAN><SPANstyle="COLOR:#000000">strreturn</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">strreturn</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">chr</SPAN><SPANstyle="COLOR:#000000">(thischarcode)<BR></SPAN><SPANstyle="COLOR:#008080">25</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">else</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">26</SPAN><SPANstyle="COLOR:#000000">nextcharcode</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">ascb(midb(vin,i</SPAN><SPANstyle="COLOR:#000000">+</SPAN><SPANstyle="COLOR:#000000">1</SPAN><SPANstyle="COLOR:#000000">,</SPAN><SPANstyle="COLOR:#000000">1</SPAN><SPANstyle="COLOR:#000000">))<BR></SPAN><SPANstyle="COLOR:#008080">27</SPAN><SPANstyle="COLOR:#000000">strreturn</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">strreturn</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">chr</SPAN><SPANstyle="COLOR:#000000">(</SPAN><SPANstyle="COLOR:#0000ff">clng</SPAN><SPANstyle="COLOR:#000000">(thischarcode)</SPAN><SPANstyle="COLOR:#000000">*</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">h100</SPAN><SPANstyle="COLOR:#000000">+</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">cint</SPAN><SPANstyle="COLOR:#000000">(nextcharcode))<BR></SPAN><SPANstyle="COLOR:#008080">28</SPAN><SPANstyle="COLOR:#000000">i</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">i</SPAN><SPANstyle="COLOR:#000000">+</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">1</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">29</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">end</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">if</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">30</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">next</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">31</SPAN><SPANstyle="COLOR:#000000">bytes2bstr</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">strreturn<BR></SPAN><SPANstyle="COLOR:#008080">32</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">endfunction</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">33</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">声明截取的格局,从Start入手下手截取,到Last为停止</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">34</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#0000ff">Function</SPAN><SPANstyle="COLOR:#000000">GetKey(HTML,Start,Last)<BR></SPAN><SPANstyle="COLOR:#008080">35</SPAN><SPANstyle="COLOR:#000000">filearray</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#0000ff">split</SPAN><SPANstyle="COLOR:#000000">(HTML,Start)<BR></SPAN><SPANstyle="COLOR:#008080">36</SPAN><SPANstyle="COLOR:#000000">filearray2</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#0000ff">split</SPAN><SPANstyle="COLOR:#000000">(filearray(</SPAN><SPANstyle="COLOR:#000000">1</SPAN><SPANstyle="COLOR:#000000">),Last)<BR></SPAN><SPANstyle="COLOR:#008080">37</SPAN><SPANstyle="COLOR:#000000">GetKey</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">filearray2(</SPAN><SPANstyle="COLOR:#000000">0</SPAN><SPANstyle="COLOR:#000000">)<BR></SPAN><SPANstyle="COLOR:#008080">38</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">EndFunction</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">39</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">40</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">Dim</SPAN><SPANstyle="COLOR:#000000">Softid,Url,Html,Title<BR></SPAN><SPANstyle="COLOR:#008080">41</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">42</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">猎取要取页面的ID</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">43</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">44</SPAN><SPANstyle="COLOR:#000000">SoftId</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">Request(</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">Id</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)<BR></SPAN><SPANstyle="COLOR:#008080">45</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">46</SPAN><SPANstyle="COLOR:#000000"> Url</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">http://www3.skycn.com/soft/</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">SoftId</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">.html</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">47</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">48</SPAN><SPANstyle="COLOR:#000000"> Html</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">GetURL(Url)<BR></SPAN><SPANstyle="COLOR:#008080">49</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">50</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">以截取天空软件的软件名为例子</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">51</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">52</SPAN><SPANstyle="COLOR:#000000"> Title</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">GetKey(Html,</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000"><fontcolor=#004FC6size=3></SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">,</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000"></font></b></td></tr></SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)<BR></SPAN><SPANstyle="COLOR:#008080">53</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">54</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#008000">翻开数据库,筹办进库</SPAN><SPANstyle="COLOR:#008000"><BR></SPAN><SPANstyle="COLOR:#008080">55</SPAN><SPANstyle="COLOR:#008000"></SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">56</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">dim</SPAN><SPANstyle="COLOR:#000000">connstr,conn,rs,sql<BR></SPAN><SPANstyle="COLOR:#008080">57</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">58</SPAN><SPANstyle="COLOR:#000000">connstr</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">DBQ=</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">+</SPAN><SPANstyle="COLOR:#000000">server.mappath(</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">db1.mdb</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)</SPAN><SPANstyle="COLOR:#000000">+</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">;DefaultDir=;DRIVER={MicrosoftAccessDriver(*.mdb)};"<BR></SPAN><SPANstyle="COLOR:#008080">59</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">60</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">set</SPAN><SPANstyle="COLOR:#000000">conn</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">server.</SPAN><SPANstyle="COLOR:#0000ff">createobject</SPAN><SPANstyle="COLOR:#000000">(</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">ADODB.CONNECTION</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)<BR></SPAN><SPANstyle="COLOR:#008080">61</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">62</SPAN><SPANstyle="COLOR:#000000">conn.openconnstr<BR></SPAN><SPANstyle="COLOR:#008080">63</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">64</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">set</SPAN><SPANstyle="COLOR:#000000">rs</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">server.</SPAN><SPANstyle="COLOR:#0000ff">createobject</SPAN><SPANstyle="COLOR:#000000">(</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">adodb.recordset</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)<BR></SPAN><SPANstyle="COLOR:#008080">65</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">66</SPAN><SPANstyle="COLOR:#000000">sql</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">select[列名]from[表名]where[列名]=</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">Title</SPAN><SPANstyle="COLOR:#000000">&</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">"<BR></SPAN><SPANstyle="COLOR:#008080">67</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">68</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">rs.opensql,conn,</SPAN><SPANstyle="COLOR:#000000">3</SPAN><SPANstyle="COLOR:#000000">,</SPAN><SPANstyle="COLOR:#000000">3</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">69</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">70</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">if</SPAN><SPANstyle="COLOR:#000000">rs.eof</SPAN><SPANstyle="COLOR:#0000ff">and</SPAN><SPANstyle="COLOR:#000000">rs.bof</SPAN><SPANstyle="COLOR:#0000ff">then</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">71</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">72</SPAN><SPANstyle="COLOR:#000000">rs(</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">列名</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">)</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#000000">Title<BR></SPAN><SPANstyle="COLOR:#008080">73</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">74</SPAN><SPANstyle="COLOR:#000000">rs.update<BR></SPAN><SPANstyle="COLOR:#008080">75</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">76</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">set</SPAN><SPANstyle="COLOR:#000000">rs</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#0000ff">nothing</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">77</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">78</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">end</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">if</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">79</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">80</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#0000ff">set</SPAN><SPANstyle="COLOR:#000000">rs</SPAN><SPANstyle="COLOR:#000000">=</SPAN><SPANstyle="COLOR:#0000ff">nothing</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">81</SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">82</SPAN><SPANstyle="COLOR:#000000">Response.Write</SPAN><SPANstyle="COLOR:#000000">"</SPAN><SPANstyle="COLOR:#000000">收罗终了!"<BR></SPAN><SPANstyle="COLOR:#008080">83</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000"><BR></SPAN><SPANstyle="COLOR:#008080">84</SPAN><SPANstyle="COLOR:#000000"></SPAN><SPANstyle="COLOR:#000000">%</SPAN><SPANstyle="COLOR:#000000">></SPAN></DIV></DIV></SPAN></SPAN>asp可以使用微软的activeX使得网页功能无比强大,不过安全性也较差,而且是基于的windows服务器,所以性能稳定性也一般 没有坚实的理论做基础,那么我们连踏入社会第一步的资本都没有,特别对于计算机专业的学生学好专业知识是置关重要的。在这里我侧重讲一下如何学习ASP,从平时的学习过程中。 我想问如何掌握学习节奏(先学什么再学什么)最好详细点? Session:这个存储跟客户端会话过程的数据,默认20分钟失效 在平时的学习过程中要注意现学现用,注重运用,在掌握了一定的基础知识后,我们可以尝试做一些网页,也许在开始的时候我们可能会遇到很多问题,比如说如何很好的构建基本框架。 ASP(ActiveServerPages)是Microsfot公司1996年11月推出的WEB应用程序开发技术,它既不是一种程序语言,也不是一种开发工具,而是一种技术框架,不须使用微软的产品就能编写它的代码,能产生和执行动态、交互式、高效率的站占服务器的应用程序。 Application:这个存储服务端的数据,如果不清除,会直到web应用程序结束才清除(例如重启站点) ASP的语言不仅仅只是命令格式差不多,而是包含在<%%>之内的命令完全就是VB语法。虽然ASP也是做为单独的一个技术来提出的,但他就是完全继承了VB所有的功能。 多看多学多思。多看一些关于ASP的书籍,一方面可以扩展知识面一方面可以鉴借别人是如何掌握、运用ASP的;多学善于关注别人,向同学老师多多学习,不论知识的大小;多思则是要将学到的知识灵活运用。
页:
[1]