易截截图软件、单文件、免安装、纯绿色、仅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实现自适应图片大小的弹出窗口

ASP.NET实现自适应图片大小的弹出窗口
在最近的项目中,遇到一个问题,要实现这样的效果:
点pic_small.Aspx页面的缩略图后弹出pic_all.aspx页面,pic_all.aspx页面的大小要根据图片大小自动调整,而且要有图片的说明信息,还可以点上一幅和下一幅等进行翻页。
实现过程如下:
pic_small.Aspx页面缩略图处的代码为: ......

asp.net获取客户端的MAC地址〔只适用于局域网〕

asp.net获取客户端的MAC地址〔只适用于局域网〕
[转]http://www.cnblogs.com/scgw/archive/2008/08/01/1213951.html
近日在做一个投票系统中有这样一个需求:为了防止恶意拉票或刷票,需要通过远程客户端的IP地址
来获取客户端网卡的MAC地址。晚上找了很多资料,终于有点收获。
    如何取得网卡mac地 ......

asp.net日志

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