上一页 1 ··· 6 7 8 9 10 11 下一页
  2008年7月18日
摘要: 天在做JMAIL发邮件的时候,接收到的邮件标题全是乱码,经在BAIDU上搜索终于解决了,以下是函数代码.. jmail.silent = true '屏蔽例外错误,返回FALSE跟TRUE两值j jmail.logging = true '启用邮件日志 jmail.Charset = "GB2312" '邮件的文字编码为国标 jmail.ContentType = "text/html" '邮... 阅读全文
posted @ 2008-07-18 12:18 hcmfys_lover 阅读(835) 评论(1) 推荐(0) 编辑
  2008年7月11日
摘要: 1、sql注入比较难防,需要替换select,delete等一打字符 其实对于字符型替换再多都没有替换单引号为两个单引号来的好!对于数字型替换再多都没有用,一定要类型转换。 2、忽略DropDownList传来的东西 其实是不对的,一切客户端的东西都是不可信任的,select下拉框也是!因为可以自己做一个htm提交到服务器。 3、access比sqlserver不安全 安全不安全关键看怎... 阅读全文
posted @ 2008-07-11 15:22 hcmfys_lover 阅读(5258) 评论(0) 推荐(1) 编辑
  2008年7月9日
摘要: scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离 scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离 scrollWidth:获取对象的滚动宽度 offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度 offsetLeft:获取对象相... 阅读全文
posted @ 2008-07-09 17:49 hcmfys_lover 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 存储过程实现分页 -------------------------------------------------------以下代码为存储过程代码 CREATE procedure News_Class --资讯新闻百万级分页 ( @StrWhere varchar(100),--条件 @PageSize int, --页面大小 @PageIndex ... 阅读全文
posted @ 2008-07-09 09:33 hcmfys_lover 阅读(183) 评论(0) 推荐(0) 编辑
  2008年6月27日
摘要: 版权所有,转载请注明,来自http://www.jialing.net/ Ajax(Asynchronous JavaScript and XML)说到底就是一种浏览器异步读取服务器上XML内容的技术。现在的技术凡是跟XML扯上关系,再加上个概念做幌子,就像金装了一样,拽得不行。门外的人看得很是热闹,门里的人摇摇头不外如是。XML呢,跨平台的新潮语言?其实XML=TXT。XML只是符合很多规... 阅读全文
posted @ 2008-06-27 15:37 hcmfys_lover 阅读(297) 评论(0) 推荐(0) 编辑
  2008年6月12日
摘要: /* FTPFactory.cs Better view with tab space=4 use the following line to compile csc /target:library /out:FTPLib.dll /r:System.Net.DLL FTPFactory.cs */ ­ ­ using System; using System.Net; using... 阅读全文
posted @ 2008-06-12 09:27 hcmfys_lover 阅读(639) 评论(0) 推荐(0) 编辑
  2008年6月2日
摘要: iis只可以运行html就是运行不了asp提示这个东西 Server Application Error The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more deta... 阅读全文
posted @ 2008-06-02 15:39 hcmfys_lover 阅读(1226) 评论(2) 推荐(0) 编辑
  2008年5月27日
摘要: 能输入数字:"^[0-9]*$"。 只能输入n位的数字:"^"d{n}$"。 只能输入至少n位的数字:"^"d{n,}$"。 只能输入m~n位的数字:。"^"d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数:"^[0-... 阅读全文
posted @ 2008-05-27 11:45 hcmfys_lover 阅读(406) 评论(3) 推荐(0) 编辑
摘要: 、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int... 阅读全文
posted @ 2008-05-27 11:43 hcmfys_lover 阅读(362) 评论(1) 推荐(0) 编辑
  2008年5月22日
摘要: /// /// /// /// 图片对象 /// 将要保传的文件路径 /// 要生成图片的宽度 /// 要生成图片的高度 private void genreateSmallImage(Bitmap img, string fileName, int targetX, int targetY) { int w =... 阅读全文
posted @ 2008-05-22 11:39 hcmfys_lover 阅读(421) 评论(1) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页