linenum <% for each temp in request.Form execute temp&"=request.form(temp)" next %>
2.2 JScript 转变量值为变量并赋值
linenum <% var $xml=new ActiveXObject("microsoft.xmldom"); $xml.load(Server.MapPath('config.xml')); var $childNodes=$xml.documentElement.selectSingleNode('//siteconfig').childNodes
for ($e=new Enumerator($childNodes); !$e.atEnd(); $e.moveNext()){ eval($e.item().nodeName+"=$e.item().text"); } $xml=null; Response.Write(sitekeywords); %>
3. 动态包含文件 3.1 VBScript 动态包含文件
linenum <% function fInclude(filepath) ' sample call '''/// execute fInclude("include/system/language/"&sitefglang&"/main.asp") ///''' dim cnt cnt=CreateObject("scripting.fileSystemObject").openTextFile(server.MapPath(filepath)).readall