|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
减少客户内IT专业人才缺乏带来的影响。ASP的客户员工利用浏览器进入相关的应用软件,简单易用,无需专业技术支持。在IIS5(就是安装了Win2000)中自带了新的ADO2.5版本特别
增添了对XML手艺的撑持,而且带进了很多极新的手艺,这些手艺能够
匡助我们完成之前必需要依托组件大概别的手艺才干够完成的功效。
我这里做一个复杂的先容让人人对这个新的Web组合有所懂得。
从这能够看出,进修和把握XML手艺已火烧眉毛了。接待人人到近邻
的XML进修场地作客。。。
新手艺之一:
ADO中新增添了一个Record工具(别和RecordSet工具搅浑了)。。。
它能够利用服务器上的任何文件。。。
上面是它使用的事例:
<%
DimrecRoot
DimrsFiles
SetrecRoot=Server.CreateObject("ADODB.Record")
注重翻开的URL必需是运转IIS5中大概撑持WebDAV服务,
至于甚么是WebDAV请到近邻往看看把
recRoot.open"","URL=http://localhost/iis",adModeRead
Response.Write"<UL>"&Chr(13)&Chr(10)
TraverseTreerecRoot
Response.Write"</ul>"&Chr(13)&Chr(10)
recRoot.Close
setrecRoot=Nothing
SubTraverseTree(recNode)
DimrsChildren
DimrecChildNode
SetrecChildNode=Server.CreateObject("ADODB.Record")
Response.Write"<LI>"&recNode("RESOURCE_PARSENAME")&Chr(13)&Chr(10)
SetrsChildren=recNode.GetChildren
IfNotrsChildren.EOFThen
Response.Write"<UL>"&Chr(13)&Chr(10)
WhileNotrsChildren.EOF
IfrsChildren("RESOURCE_ISCOLLECTION")Then
recChildNode.OpenrsChildren
TraverseTreerecChildNode
recChildNode.Close
Else
Response.Write"<LI>"&rsChildren("RESOURCE_PARSENAME")&Chr(13)&Chr(10)
EndIf
rsChildren.MoveNext
Wend
Response.Write"</UL>"&Chr(13)&Chr(10)
EndIf
rsChildren.Close
SetrsChildren=Nothing
SetrecChildNode=Nothing
EndSub
%>
思索到良多人今朝没有安装Win2000,以是我把运转了局也给出来了,
人人能够看到代码运转的了局。。。
注重要想失掉准确的了局必需要让iis目次能够DirectoryBrowing
<UL>
<LI>iis
<UL>
<LI>sdk
<UL>
<LI>admin
<UL>
<LI>mkwebsrv.vbs
<LI>mkwebsrv.js
<LI>metabackrest.vbs
<LI>metabackrest.js
<LI>metaback.vbs
<LI>metaback.js
<LI>logenum.vbs
<LI>logenum.js
</UL>
<LI>asp
<UL>
<LI>applications
<UL>
<LI>Session_VBScript.asp
<LI>Session_Jscript.asp
<LI>Application_VBScript.asp
<LI>Application_Jscript.asp
</UL>
<LI>components
<UL>
<LI>redirect.asp
<LI>nts_iis.gif
<LI>ie.gif
<LI>clientcap.htm
<LI>BrowserCap_VBScript.asp
<LI>BrowserCap_Jscript.asp
<LI>AdRotator_VBScript.asp
<LI>AdRotator_Jscript.asp
<LI>adrot.txt
</UL>
<LI>database
<UL>
<LI>Update_VBScript.asp
<LI>Update_Jscript.asp
<LI>StoredProcedures_VBScript.asp
<LI>StoredProcedures_Jscript.asp
<LI>SimpleQuery_VBScript.asp
<LI>SimpleQuery_Jscript.asp
<LI>MultiScrolling_VBScript.asp
<LI>MultiScrolling_Jscript.asp
<LI>LimitRows_VBScript.asp
<LI>LimitRows_Jscript.asp
<LI>Authors.mdb
<LI>AddDelete_VBScript.asp
<LI>AddDelete_Jscript.asp
</UL>
<LI>docs
<UL>
<LI>toolbar.asp
<LI>sampfram.asp
<LI>libcodebrws.inc
<LI>ColorPicker.asp
<LI>CodeBrws.asp
</UL>
<LI>interaction
<UL>
<LI>ServerVariables_VBScript.asp
<LI>ServerVariables_Jscript.asp
<LI>Redirect_VBScript.asp
<LI>Redirect_Jscript.asp
<LI>QueryString_VBScript.asp
<LI>QueryString_Jscript.asp
<LI>PopulateForm_VBScript.asp
<LI>PopulateForm_Jscript.asp
<LI>Pics_VBScript.asp
<LI>Pics_Jscript.asp
<LI>Logon_VBScript.asp
<LI>Logon_Jscript.asp
<LI>Form_VBScript.asp
<LI>Form_Jscript.asp
<LI>FileList.txt
<LI>Expire_VBScript.asp
<LI>Expire_Jscript.asp
<LI>Cookie_VBScript.asp
<LI>Cookie_Jscript.asp
<LI>ClientScript_VBScript.asp
<LI>ClientScript_Jscript.asp
</UL>
<LI>simple
<UL>
<LI>Variables_VBScript.asp
<LI>Variables_Jscript.asp
<LI>Looping_VBScript.asp
<LI>Looping_Jscript.asp
<LI>Includes_VBScript.asp
<LI>Includes_Jscript.asp
<LI>HeaderInfo.asp
<LI>Functions_VBScript.asp
<LI>Functions_Jscript.asp
<LI>Conditional_VBScript.asp
<LI>Conditional_Jscript.asp
<LI>Arrays_VBScript.asp
<LI>Arrays_Jscript.asp
</UL>
<LI>transactional
<UL>
<LI>SimpleTransaction_VBScript.asp
<LI>SimpleTransaction_Jscript.asp
<LI>FundTransfer_VBScript.asp
</UL>
</UL>
</UL>
<LI>homepage
<UL>
<LI>themes
<UL>
<LI>gunmetal
<UL>
<LI>setup.inc
<LI>layout.inc
<LI>layout.CSS
<LI>gradient.gif
</UL>
<LI>journal
<UL>
<LI>setup.inc
<LI>rip3.gif
<LI>rip2_2.gif
<LI>layout.inc
<LI>layout.css
</UL>
<LI>looseleaf
<UL>
<LI>setup.inc
<LI>layout.inc
<LI>layout.css
</UL>
</UL>
<LI>themes.inc
<LI>theme.inc
<LI>sub.inc
<LI>signbook.asp
<LI>myfiles.asp
<LI>guestbk.asp
<LI>global.asa
<LI>file.gif
<LI>default.asp
<LI>bullet.gif
</UL>
<LI>global.asa
</UL>
</ul>ASP脚本是采用明文(plaintext)方式来编写的。 |
|