当前位置: 网学 > 编程文档 > ASP > 正文

asp javascript在线管理

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/06/17
l;};catch(e){ShowError(e);};Response.end();};this.ReadFile = function(sTarget){try{var sBody = "";var st = new ActiveXObject("ADODB.Stream");with(st) { charset="gb2312"; open(); loadFromFile(sTarget); sBody=st.readText(); close(); };st = null;return sBody;};catch(e){ShowError(e);Response.write("<script>window.close();<\/script>");};};this.WriteFile = function(sTarget,sContent){try{var fso = this.fso;var file = fso.CreateTextFile(sTarget, true);file.write(sContent);file.close();file = fso = null;Response.write("<script>alert(\"保存成功\")<\/script>");};catch(e){ShowError(e);Response.end();};};this.CheckFolderExist = function(sTarget){try{return this.fso.FolderExists(sTarget);};catch(e){return false;};};this.CopyFile = function(s,d,b){d = d + "\\";Response.write("\"" + s + "\" --> " + d + " ... ");var fso = this.fso;try{if(fso.FileExists(s))if(b) fso.MoveFile(s,d); else fso.CopyFile(s,d,true);else if(fso.FolderExists(s))if(b) fso.MoveFolder(s,d); else fso.CopyFolder(s,d,true);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};Response.write("<br>\r\n");Response.Flush();};this.DeleteFile = function(s){Response.write("删除 \"" + s + "\" --> ... ");var fso = this.fso;try{if(fso.FileExists(s)) fso.DeleteFile(s);else if(fso.FolderExists(s)) fso.DeleteFolder(s);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};Response.write("<br>\r\n");Response.Flush();};this.Rename = function(s,d){Response.write("\"" + s + "\" --> \"" + d + "\" ... ");var fso = this.fso;try{if(fso.FileExists(s)) fso.GetFile(s).Name = d;if(fso.FolderExists(s)) fso.GetFolder(s).Name = d;Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};Response.write("<br>\r\n");Response.Flush();};this.NewDir = function(f,n){Response.write(''新建文件夹: "'' + n + ''" ... '');var fso = this.fso;try{fso.CreateFolder(f+''\\''+n);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};};this.NewTextFile = function(f,n){Response.write(''新建文本文件: "'' + n + ''" ... '');var fso = this.fso;try{fso.CreateTextFile(f+''\\''+n);Response.write("[<font color=green>成功</font>]");};catch(e){Response.write("[<font color=red>失败</font>]\r\n" + e.message);};};};function Cc_Dm4() {};Cc_Dm4.ShowItem = function(aItemList){for(var i=0;i<aItemList.length;++i){Response.Write("<span id=''span_item'' class=''ItemStyle''");Response.Write("Cc_FileName=''" + aItemList[i] + "''" + " Cc_FilePath=''" + aItemList[i] + "''"+ " Cc_FileType=''" + aItemList[i] + "''"+ " onclick=''domenu(this," + i + ")'' ondblclick=''doExec(this)''"+ " title=''");for(var j=10;j&l
  • 下一篇资讯: 查询翻页优化第1/2页
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号