上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: Log4Net是记录日志方面的.net著名开源项目,现在最新版可以在http://logging.apache.org/log4net/download.html下载如何运用Log4Net?看过网上很多例子,一般都会为三步1.引用log4net.dll2.在AssemblyInfo.cs给定日志输出格式文件名[assembly:log4net.Config.DOMConfigurator(Conf... 阅读全文
posted @ 2009-11-19 11:48 alex hu 阅读(325) 评论(0) 推荐(0)
摘要: [代码]ImportsICSharpCode.SharpZipLib.Zip.Compression.StreamsSub Main() Dim folder As String = "C:\Cracked\Files" ' This is the name of the resource we took from ' reflector. Dim bFile As String = _ Sys... 阅读全文
posted @ 2009-10-29 10:28 alex hu 阅读(525) 评论(0) 推荐(0)
摘要: Set Pdf = Server.CreateObject("Persits.Pdf")Set Doc = Pdf.CreateDocumentDoc.ImportFromUrl "http://www.persits.com/"'Filename = Doc.Save( Server.MapPath("importfromurl.pdf"), False ) ' Save to HTTP str... 阅读全文
posted @ 2009-08-21 12:44 alex hu 阅读(748) 评论(0) 推荐(0)
摘要: 很早以前做了一套信息发布系统,是做到客户可以自定义字段,无限级分类,后来发现在效率很低...还是决定把方案写出来.做客户自定义字段有两种方法,一种就是客户每新增字段,就增加到数据一个字段另一种就是 行转列的方式我是用的第二种,设计三张表l功能表 t_sys_field 用户字段字段名类型默认值中文意义关键表值fieldidintidentity primary key字段idcategoryidi... 阅读全文
posted @ 2009-08-16 21:09 alex hu 阅读(703) 评论(3) 推荐(0)
摘要: 前段时间有个客户网站需要用到信用卡支付功能,客户有个Website Payments Pro的帐号,第一次做这东西花了很多时间在上面,已做好运行了一段日子,现在总结一下:1. 先注册一个paypal开发者帐号,这个主要用于sandbox测试,注册地址:https://developer.paypal.com/,注册成功这后,在home中Create a preconfigured buyer or... 阅读全文
posted @ 2009-07-03 16:16 alex hu 阅读(3683) 评论(8) 推荐(0)
摘要: select name from sysusers where name not in ( select name COLLATE Latin1_General_CI_AI from master..syslogins )select ShippingServicename COLLATE Latin1_General_CI_AI as ShippingServicename from aunio... 阅读全文
posted @ 2009-06-19 23:31 alex hu 阅读(341) 评论(0) 推荐(0)
摘要: 最新用到ValidatorCalloutExtender这个控件,发现有滚动条的时候偶尔显示位置不正确,后面查了一下,解决方案就是在最外面加个div或table,并用上style="position:relative;" 阅读全文
posted @ 2009-05-27 20:18 alex hu 阅读(231) 评论(0) 推荐(0)
摘要: 这是开始学习silverlight的第一个游戏源码下载 http://files.cnblogs.com/hubj/Movebox.rar感谢各位的关注,已增加重新开始功能! :)click onto the red block with jump over it:鼠标移动到红色部分。move the red block avoiding crash with the blue ones拖动红块,... 阅读全文
posted @ 2009-05-15 13:56 alex hu 阅读(3012) 评论(30) 推荐(1)
摘要: 找到C:\Users\YOUR_USER_NAME\AppData\Local\Microsoft\VisualStudio\9.0\删除"toolboxIndex_reset.tbd ,toolboxIndex.tbd ,toolbox_reset.tbd ,toolbox.tbd" 阅读全文
posted @ 2009-05-13 14:50 alex hu 阅读(317) 评论(0) 推荐(0)
摘要: 写这个的东西人多了,小网站偶尔也要用一下自己也写一个Randomizedim i:i=0sql="select id,caption from table"set rs=server.CreateObject("adodb.recordset")rs.open sql,conn,1,3lngCount = rs.RecordCountredim idList(lngCount)while i<... 阅读全文
posted @ 2009-03-30 17:07 alex hu 阅读(373) 评论(0) 推荐(0)
摘要: <script language="javascript" type="text/javascript"><!--function addnewline(){ var row,cell,cell2;row = document.getElementById("estimateslist").insertRow(-1);if(row != null ){cell = row.ins... 阅读全文
posted @ 2009-03-26 12:46 alex hu 阅读(929) 评论(0) 推荐(0)
摘要: 在 IE 中 getYear,getFullYear两者都是获取年份 Firefox、Safari,getYear 始终返回 Date 对象中的年份与 1900 年之间的差距,也就是说如果 Date 对象表示的是今年(2009 年),那么返回的就是 109。 getFullYear 则不存在此问题 阅读全文
posted @ 2009-03-24 10:03 alex hu 阅读(351) 评论(0) 推荐(0)
摘要: string[] alphabetical = new string[26]{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", " 阅读全文
posted @ 2009-03-22 16:05 alex hu 阅读(228) 评论(1) 推荐(0)
摘要: DATEADD(day, -1, DATEADD(month, 1,DATEADD(day,-DATEPART(day, GETDATE())+1,getdate() ))) --月末 DATEADD(month, 1,DATEADD(day,-DATEPART(day, GETDATE())+1,getdate() )) --月初 阅读全文
posted @ 2009-03-18 13:22 alex hu 阅读(4117) 评论(1) 推荐(0)
摘要: 前段时间做了一个国外网站,本地时间格式与服务器时间格式不一样,相对应的程序也出错,自己split分割有的时候也会不对. 后来查了一下发现MS有个解决方案 阅读全文
posted @ 2009-03-11 21:22 alex hu 阅读(411) 评论(0) 推荐(0)
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> System.Web.Mail.MailMessage email = new System.Web.Mail.MailMessage(); emai... 阅读全文
posted @ 2009-03-09 22:00 alex hu 阅读(178) 评论(0) 推荐(0)
摘要: 客户要求在自己的网站上面显示股票相关数据,所以特此将此方法贴出来,方便大家。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2009-02-10 20:29 alex hu 阅读(1743) 评论(0) 推荐(0)
摘要: Sina股票数据接口 以大秦铁路(股票代码:601006)为例,如果要获取它的最新行情,只需访问新浪的股票数据 接口:http://hq.sinajs.cn/list=sh601006这个url会返回一串文本,例如: var hq_str_sh601006="大秦铁路, 27.55, 27.25, 26.91, 27.55, 26.20, 26.91, 26.92, 22114263, 5898... 阅读全文
posted @ 2009-02-10 18:26 alex hu 阅读(3721) 评论(2) 推荐(0)
摘要: 解决办法: repair table xxx; 阅读全文
posted @ 2009-02-01 12:46 alex hu 阅读(237) 评论(0) 推荐(0)
摘要: create table table_name select * from original_table_name where 1=2; 这样,就生成了一个新的表,它的表结构就与原始表相同,但是没有原始表中的数据。 如果你想把数据也一起复制过来,可以通过输入: create table table_name select * from original_table_name whe... 阅读全文
posted @ 2009-01-09 11:53 alex hu 阅读(293) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页