摘要:
<%@WebHandlerLanguage="C#"Class="Handler2"%>发现其实可以把ashx文件和具体的代码分开。<%@WebHandlerLanguage="C#"Class="Handler2"CodeBehind="Handle2.cs"%>把实现的代码存放到app_code文件夹下面,这样可以保证代码的安全。因为①微软给各种特定的文件夹设定了访问权限②编译之后的代码呈现为dll格式,不容易查看源码。Global.asax在App_Code中添加G 阅读全文
摘要:
/**该function执行copy指令*/functionfn_doufucopy(){ edit.select(); document.execCommand('Copy'); } /**该function执行paste指令*/functionfn_doufupaste(){ tt.focus(); document.execCommand('paste'); } /**该function用来创建一个超链接*/functionfn_creatlink() { document.execCommand('CreateLink',true, 阅读全文