12 2009 档案

摘要:最近为了提高的程序的性能,将相应的Hashtable替换为泛型Dictionary<T,T>,运行后抛出异常:当前key不在字典当中。后来测试发现原来是,当key不存在时,hashtable直接返回null,而用Dictionary<T,T>则会抛出异常。 阅读全文
posted @ 2009-12-29 10:11 ForFreeDom 阅读(207) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-12-24 14:17 ForFreeDom 阅读(375) 评论(0) 推荐(0)
摘要:ajaxStop is triggered when the number of outstanding ajax requestsreaches zero. ajaxComplete is triggered after each response isreceived. ajaxComplete is also passed the XHR and the settingsobject. 阅读全文
posted @ 2009-12-21 23:33 ForFreeDom 阅读(732) 评论(0) 推荐(1)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<divstyle="display:block;background-image:url(images/logo.jpg);background-repeat:no-repeat;">&... 阅读全文
posted @ 2009-12-18 17:44 ForFreeDom 阅读(626) 评论(0) 推荐(0)
摘要:本质原因是 escape() 只是为 ASCII字符 做转换工作,转换成的 %unnnn 这样的码,如果要用更多的字符如 UTF-8字符库 就一定要用 encodeURIComponent() 或 encodeURI() 转换才可以成 %nn%nn 这的码才可以,就这么简单,多与少的问题,HOHO~所以所以,为了全球的统一化进程,在用 encodeURIComponent() 或 encodeUR... 阅读全文
posted @ 2009-12-16 18:31 ForFreeDom 阅读(314) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<divid="load"align="center"><imgsrc="http://sc.cnwebshow.com/upimg/allimg/070707/01294420.g... 阅读全文
posted @ 2009-12-12 13:50 ForFreeDom 阅读(1844) 评论(0) 推荐(0)
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-... 阅读全文
posted @ 2009-12-10 14:16 ForFreeDom 阅读(552) 评论(0) 推荐(0)
摘要:代码 sql1="INSERTINTOtablename(Id,col1,col2)VALUES(@Id,@col1,@col2)updatetablename2setcol=@col";sql2="INSERTINTOtablename3(Id,col1,col2)VALUES(@Id,@col1,@col2)";//参数设置(略)using(SqlTransactiontran=SqlHelp... 阅读全文
posted @ 2009-12-09 11:22 ForFreeDom 阅读(4014) 评论(1) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//C#中可使用using关键字自动清除对象资源。//#MyObject.csusingSystem;namespaceMyProjects{publicclassMyObject:IDisposab... 阅读全文
posted @ 2009-12-09 11:15 ForFreeDom 阅读(225) 评论(0) 推荐(0)
摘要:前台页面:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<asp:TemplateFieldHeaderText="操作"><ItemTemplate><asp:LinkButtonID="LKdel"runat="... 阅读全文
posted @ 2009-12-08 15:29 ForFreeDom 阅读(185) 评论(1) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-t... 阅读全文
posted @ 2009-12-08 15:17 ForFreeDom 阅读(551) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-12-06 10:47 ForFreeDom 阅读(632) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functionobjValue(obj){varst=document.documentElement.scrollTop;//滚动条距顶部的距离varsl=document.documentEle... 阅读全文
posted @ 2009-12-06 10:45 ForFreeDom 阅读(328) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-t... 阅读全文
posted @ 2009-12-05 21:37 ForFreeDom 阅读(245) 评论(0) 推荐(0)
摘要:1.前台页面[代码]2.后台代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidPage_Load(objectsender,EventArgse){objectobj=SqlHelper.ExecuteScalar(co... 阅读全文
posted @ 2009-12-03 22:46 ForFreeDom 阅读(542) 评论(0) 推荐(0)
摘要:思路是在页面加载的时候获取服务器时间作为起点显示时间:1.前台页面[代码]2.后台代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidPage_Load(objectsender,EventArgse){objectobj... 阅读全文
posted @ 2009-12-03 22:34 ForFreeDom 阅读(705) 评论(0) 推荐(0)
摘要:1.前台页面文件注意设置DataKeyNames2.在pageIndexChanging事件中代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidGridView1_PageIndexChanging(objectsender... 阅读全文
posted @ 2009-12-03 22:26 ForFreeDom 阅读(148) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicstringCreateJsonParameters(DataTabledt){/**//**//**//*/***************************************... 阅读全文
posted @ 2009-12-03 22:12 ForFreeDom 阅读(199) 评论(0) 推荐(0)
摘要:前台代码:[代码]后台代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--DataTableds=vote.getSurveyitemsmainAll();DDLsurveyitems.DataSource=ds;DDLsurveyitems.D... 阅读全文
posted @ 2009-12-03 22:07 ForFreeDom 阅读(182) 评论(0) 推荐(0)
摘要:1.前台页面:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<asp:RepeaterID="RptThankBrd"runat="server"onitemdatabound="RptThankBrd_ItemDataBound">... 阅读全文
posted @ 2009-12-03 22:01 ForFreeDom 阅读(641) 评论(0) 推荐(0)