savesubcatalog.asp
来自「Windows Web脚本开发指南/(美) Dan Heflin, Todd N」· ASP 代码 · 共 18 行
ASP
18 行
<%@ LANGUAGE=JavaScript %>
<%
//Save the XML file to the value fileName in passed in for the query string
var xmlValue = Request.Form("xmlSource");
subCatalog = new ActiveXObject("Microsoft.FreeThreadedXMLDOM");
subCatalog.async = false;
subCatalog.resolveExternals = false;
subCatalog.loadXML(xmlValue);
var fileName = Request.QueryString("fileName");
subCatalog.save(Server.MapPath(fileName));
Response.Write("<p>The sub-catalog has been saved to the server path: " + Server.MapPath(fileName) + "</p>");
Response.Write("<p>Don't forget to move the images to the appropriate directory.</p>");
Response.Write("<p>The changes will be come effective the next time the application is restarted.</p>");
Response.Write("<a href='hier.htm'>Return to Menu.</a>");
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?