摘要: 官網上的 fancybox 1.3.4 太老了,不支持jQuery1.10.1,改動了一下源碼,現在可以支持了。type為Ajax時,也可以定義窗口的大小。 $("#ajaxlink").fancybox({ 'width' : 640, 'height' : 480, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none' });源碼下載 阅读全文
posted @ 2013-06-28 04:04 jdxx 阅读(795) 评论(0) 推荐(0) 编辑
摘要: c#中JSON与Class的转换,包括序列化的库 1 public class SerializableUtility 2 { 3 public static MemoryStream Serialize(object _obj) 4 { 5 BinaryFormatter formater = new BinaryFormatter(); 6 MemoryStream ms = new MemoryStream(); 7 formater.Serialize(ms, _ob... 阅读全文
posted @ 2013-01-27 16:28 jdxx 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Text; 6 7 namespace xxWare.Common 8 { 9 public static class GenericExtension 10 { 11 #region List<T> search count 12 public static int CountAll<T>(th... 阅读全文
posted @ 2013-01-22 02:59 jdxx 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 60多年前,一群小白程序猿扒了一个俄罗斯的开源框架,写了几行漏洞百出的代码,产品上线运营了。30年后新的CTO实在看不下去了, 重构了部分代码,但框架依旧是旧的。又过了30年,新代码和旧框架严重不兼容,产品濒临崩溃,用户流失严重,这时我们该怎么办? 1、继续修补BUG,打补丁。2、换个框架重构代码。 3、干脆换掉这些程序猿。关键是那个开源框架烂的很,还没哪个使用它的产品成功过,后来连俄国人自己都抛弃不用了。 阅读全文
posted @ 2012-02-03 21:08 jdxx 阅读(219) 评论(0) 推荐(0) 编辑
摘要: the fuck wall isn't just round the net, it's up here in your heads.you know it. 阅读全文
posted @ 2011-12-20 23:08 jdxx 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 留着备用68.142.214.43farm1.staticflickr.com68.142.214.43mud.farm1.staticflickr.com66.196.118.49re2.farm1.staticflickr.com69.147.90.159sp1.farm2.staticflickr.com69.147.123.63re2.farm2.staticflickr.com69.147.90.159farm2.staticflickr.com76.13.18.78farm3.staticflickr.com76.13.18.78bf1.farm3.staticflickr.com 阅读全文
posted @ 2011-11-30 21:01 jdxx 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 这个问题在满足下面几个条件时产生:1. 使用了MasterPage。2. 使用LinkButton来触发UpdateProgress。3. 通过JS的prm.add_initializeRequest(或者PageLoad)来得到触发对象的ID4. 项目中加入了 AjaxControlToolkit.dll 的引用。(只需要加入引用就会发生错误,哪怕页面上没有使用AjaxControlToolkit的控件)当满足这4个条件是,JS会出现错误。源码如下:<asp:Content ID="Content2" ContentPlaceHolderID="Conte 阅读全文
posted @ 2011-05-12 03:16 jdxx 阅读(1628) 评论(1) 推荐(2) 编辑
摘要: 在我的实际工作中,ASP.NET中的Session的定义和取消有时是分散的,工作组中的每个人定义Session的时候不一样,并且名称有随意性,所以做了一个Session的统一管理,便于Session的规范化。代码如下:1. 定义接口:只需要实现 ToString()即可。//Interface for Session public interface ISession { string ToString(); }2. Session 类 // ManagerInfo 是Model中的一个类,直接继承 // 将对象放入Session中时,该对象必须是可序列化的 [Serializable] pu 阅读全文
posted @ 2011-05-04 14:16 jdxx 阅读(2822) 评论(7) 推荐(3) 编辑
摘要: 重新封装了一个 GridView,支持如下功能:1. CheckBox选择记录,指定CheckBox的位置2. 支持List,DataSet,Datatable 排序3. 排序时在Header部分出现图标4. 封装了PageIndexChanged 和DataBind,不用每页都写。5. 支持SQL分页和ApsNetPager等分页控件。注: 没有加入很多的功能,因为本身需要的就是一个轻量级的GridView,产生近可能少的代码。另:选择高亮功能是用JQuery实现的,因此使用时需要JQuery的运行库。代码1 : 辅助对象,实现Sort排序。(其实这部分功能可以用LINQ来做,会简单很多,当 阅读全文
posted @ 2011-05-03 19:04 jdxx 阅读(3116) 评论(7) 推荐(8) 编辑
摘要: 重新封装了一个 GridView,支持如下功能: 1. CheckBox选择记录,指定CheckBox的位置 2. 支持List,DataSet,Datatable 排序 3. 排序时在Header部分出现图标 4. 封装了PageIndexChanged 和DataBind,不用每页都写。 阅读全文
posted @ 2011-05-01 04:04 jdxx 阅读(2663) 评论(12) 推荐(3) 编辑