摘要: 1. 在server端,我们使用 return new JavaScriptSerializer().Serialize(list); 在client端,使用 JSON.Parse(data) 阅读全文
posted @ 2016-07-24 23:08 alwaysdotnet 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. Build a org tree use jquery 先动态构建一组UL / LI 对象。然后运行 $("#org").jOrgChart(); 阅读全文
posted @ 2016-07-24 23:06 alwaysdotnet 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 今天尝试写了一下Jquery Plugin,算是Jquery 面向对象的一种 有几点心得 1. $.fn 的用法,类似prototype 2.this 必须赋值给局部变量 3. extend的用法 4.如何绑定事件的用法 $.fn.test = function (options) { var se 阅读全文
posted @ 2016-03-31 17:29 alwaysdotnet 阅读(106) 评论(1) 推荐(0) 编辑
摘要: 最近在MVC项目上使用 FormsAuthentication ticket,发现cookie怎么也保存不了。 原来是cookie里的size 太大。使得cookie无法保存。 阅读全文
posted @ 2016-03-17 10:50 alwaysdotnet 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Jmailhttp://stackoverflow.com/questions/768336/wrap-32-bit-dll-for-64-bit-operating-system-to-work-with-regsvr32-exe5 down vote If you want to registe... 阅读全文
posted @ 2015-09-09 17:44 alwaysdotnet 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 碰到一个奇怪的问题, 如标题所示, 字面意思是 访问web.config被拒绝。 可事实是在这个目录下没有web.config文件。后来把这个文件夹与其他可以正常访问的文件夹相比, 在security这个选项下,缺失一个Users 访问permission. 阅读全文
posted @ 2015-08-03 09:44 alwaysdotnet 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 今天尝试给一个report添加图片,怎么也添加不上。发现两个关键因素。1.Resolution:Right click on your report and select Insert >> PictureSINGLE-click on the image that you wish to inse... 阅读全文
posted @ 2015-05-27 18:12 alwaysdotnet 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 虽然对cache 不陌生,但是第一次感觉比较正式在 asp.net 用。 在一个class里管理cache, 发觉不能new cache, 只能靠传递httpcontext 对象。用内置的cache 才可以。 阅读全文
posted @ 2015-04-23 10:35 alwaysdotnet 阅读(139) 评论(0) 推荐(0) 编辑
摘要: From David Andres: "Double check that the order of the columns defined in cityTable matches the order of columns within the database table itself." 阅读全文
posted @ 2015-04-21 18:54 alwaysdotnet 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 有时候我们会引用一些外部assembly.这个时候系统会报不是有效的win32程序。此时需要在IIS7里做些设置1. Inside IIS (7)click on Application Pools.2. Find the Application Pool that is configured fo... 阅读全文
posted @ 2015-04-07 17:10 alwaysdotnet 阅读(141) 评论(0) 推荐(0) 编辑