摘要: using System;using System.IO;using System.Text;using System.Security.Cryptography;using System.Web;namespace Encryption.App_Code{ /// /// 加密码类 /// public class Encryption { /// /// 加密 /// /// /// public static string DesEncrypt(string in... 阅读全文
posted @ 2013-11-18 19:59 Varorbc 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1 //创建站点地图 2 private void CreateSiteMap(DataSet ds) 3 { 4 5 XmlDeclaration declareation; 6 declareation = xmlDoc.CreateXmlDeclaration("1.0", "UTF-8", null); 7 xmlDoc.AppendChild(declareation); 8 9 XmlElement xeRoot = xmlDoc.CreateEle... 阅读全文
posted @ 2013-11-15 10:57 Varorbc 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1. 用Response.Write方法 代码如下: Response.Write(""); 此方法缺陷就是不能调用脚本文件中的自定义的函数,只能调用内部函数,具体调用自定义的函数只能在Response.Write写上函数定 义,比如 Response.Write("");2.用ClientScript类 代码如下:在想调用某个javascript脚本函数的地方添加代码,注意要保证MyFun已经在脚本文件中定义过了。 ClientScript.RegisterStartupScript(ClientScript.GetType(), "mysc 阅读全文
posted @ 2013-11-14 20:13 Varorbc 阅读(624) 评论(0) 推荐(1) 编辑
摘要: >文件粉碎的流程填充文件更改最后使用/创建时间更改名称将大小改为 0 kb删除 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.IO; 5 6 namespace RocketStudio 7 { 8 class ShredFile 9 { 10 /// 11 /// 文件粉碎选项 12 /// 13 public enum ShredMode 14 ... 阅读全文
posted @ 2013-11-14 10:32 Varorbc 阅读(648) 评论(0) 推荐(0) 编辑