易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET(c#)常用类函数

 
常用函数系列:
public static string Get_ClientIP() 得到客户端IP
public static string Get_CMac(string IP) 得到客户端 CMac 地址
public static string RequestF(string xPName,string xPType,int xLenDef) 安全接收数据系列
public static string Show_Cont(string xStr) 过滤显示字串
public static string Show_jsStr(string xStr) 过滤显示js
安全检测函数:
public static string CheckUrl(string xDirPage) 上页地址认证
public static string Chk_Perm0(string xPerm,string xSys,string xAct) 权限认证系列
public static string Chk_Perm1(string xPerm,string xSys,string xAct) 权限认证系列
public static string Chk_Perm2(string xPerm,string xSys,string xAct) 权限认证系列
邮件发送函数:
public void SendEmail(string xSubj,string xCont,string FmAddr,string ToAddr)
public void SendSmtp(string xSubj,string xCont,string xfrom,string xTo)
加密解密函数:
public static string Enc_PW(string xID,string xPW,int xLen) 改装sha1+md5加密解密函数加密函数
public static string Conv_10toXX(long xNum,int xBase) 10进制 转 XX 进制
public static long Conv_XXto10(string xStr,int xBase) xx进制 转 10 进制
public static string DESDec(string pToDecrypt, string sKey) DES解密
public static string DESEnc(string pToEncrypt, string sKey) DES加密密
public static string DESPeace(string xStr, string xType) 改装DES
public static string DESSwap(string xStr, int xN) DES 改装算法
文件操作函数:
public static string fCreate(string xFile,string xContent) 建立文件
public void ImgCode (Page containsPage,string validateNum) 生成图片认证码
public static string ImgShow(string xPName,int xImgW,int xImgH,int xMaxW,int xMaxH) 按比例大小显示图片
public static DataTable fList(string xPath) 显示文件列表 显示文件夹列表
public static string fRead(string xFile) 文件读取函数
public static ArrayList fUpload(HttpPostedFile xFile,string xPath,string xOrg,int xSize,string xType) 文件上传认证函数
时间/随即字串函数:
public static string Get_AutoID(int xLen) 自动随机 ID 串
public static string Get_HHMMSS()  得到时间HHm


相关文档:

asp.net客户端传递参数心得

 
客户端传送数据到服务器端有三种方法:
1.form
2.querystring
3.cookie
利用这些方式取得的数据在服务器端都是字典集合,如果要精确取到某个集合的值,则直接使用对应的集合的名称,三种方式对应的集合如下:
1.form:request.form
2.querystring:request.querystring
3.cookie:request.cookie
利用request.p ......

ASP.NET MVC 2 模版系列2: ModelMetadata

同样是一篇转帖的文章,
原文: http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html 
着重介绍了ASP.NET MVC2 里面的 ModelMetadata 类
ASP.NET MVC 2 Templates, Part 2: ModelMetadata
Series Index
Part 1: Introduction
Part 2: ModelMetadata
Understanding You ......

MySQL(asp.net) 事务

 try
        {
            string _conStr = "Driver={MySQL ODBC 3.51
Driver};server=localhost;database=test;uid=test;password=1;option=3";
          & ......

asp.net日志

                    string path = "...\\Debug\\log.txt";
                    if (!File.Exists(path))
 & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号