上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 52 下一页
摘要: using (Stream file = spFile.OpenBinaryStream()) { //其余代码 } 阅读全文
posted @ 2016-04-06 11:34 lishidefengchen 阅读(810) 评论(0) 推荐(0)
摘要: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(SPContext.Current.Site.ID)) { ... 阅读全文
posted @ 2016-04-06 10:05 lishidefengchen 阅读(282) 评论(0) 推荐(0)
摘要: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(SPContext.Current.Site.ID)) { using ... 阅读全文
posted @ 2016-04-06 10:01 lishidefengchen 阅读(642) 评论(0) 推荐(0)
摘要: slice<摘抄自http://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000/00143449921138898cdeb7fc2214dc08c6c67827758cd2f000>slice() 阅读全文
posted @ 2016-04-05 18:17 lishidefengchen 阅读(485) 评论(0) 推荐(0)
摘要: 说明: strFilePath是文件全路径; 使用的 NPOI 版本是 2.1.3.1 阅读全文
posted @ 2016-04-05 10:57 lishidefengchen 阅读(192) 评论(0) 推荐(0)
摘要: /// /// 获取单元格的值 /// /// /// public static object GetCellValue(ICell item) { if (item == null) { return stri... 阅读全文
posted @ 2016-04-05 10:48 lishidefengchen 阅读(3208) 评论(0) 推荐(0)
摘要: using (var ctx = new PortalContext()){ var city = ctx.Cities.Find(42); ctx.Entry(city) .Reference(c => c.Province) .Load(); city.Province = null; ctx. 阅读全文
posted @ 2016-03-30 17:44 lishidefengchen 阅读(487) 评论(0) 推荐(0)
摘要: https://www.guidgenerator.com/online-guid-generator.aspx 阅读全文
posted @ 2016-03-30 10:10 lishidefengchen 阅读(1118) 评论(0) 推荐(0)
摘要: $('#someTextBox').keypress(function(event){ var keycode = (event.keyCode ? event.keyCode : event.which); if(keycode == '13'){ alert('You pressed a "enter" key in textbox'); ... 阅读全文
posted @ 2016-03-25 12:43 lishidefengchen 阅读(328) 评论(0) 推荐(0)
摘要: Array.IndexOf(Array,obj); 阅读全文
posted @ 2016-03-24 14:04 lishidefengchen 阅读(388) 评论(0) 推荐(0)
摘要: http://www.spritecow.com/ 阅读全文
posted @ 2016-03-22 13:28 lishidefengchen 阅读(303) 评论(0) 推荐(0)
摘要: C#后台获取客户端浏览器的类型: Request.Browser.Type; ("Firefox44"、 "IE7"、 "Chrome49"等,忽略版本问题) 阅读全文
posted @ 2016-03-18 17:37 lishidefengchen 阅读(445) 评论(0) 推荐(0)
摘要: linq的条件语句尽量不要出现计算的式子,要不然很可能,程序不能正确的将这些复杂的式子编译成表达式!! 例如: dataContext.Assets.Count(s => s.SubCategory.Id == ‘这里最好是一个变量,不要出现表达式’) 阅读全文
posted @ 2016-03-16 17:13 lishidefengchen 阅读(326) 评论(0) 推荐(0)
摘要: Win7:%ProgramData%\TechSmith\Camtasia Studio 8\RegInfo.iniWinXP:”%AllUsersProfile%\Application Data\TechSmith\Camtasia Studio 8\RegInfo.ini”把“RegInfo. 阅读全文
posted @ 2016-03-11 09:49 lishidefengchen 阅读(4546) 评论(0) 推荐(0)
摘要: 当设置_self属性时,再设置宽和高就不管用,这个宽高会继承父窗口的宽高! window.open("url","_self","width=100,height=200"); 上面相当于: window.open("url","_self"); 阅读全文
posted @ 2016-03-10 14:37 lishidefengchen 阅读(1637) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 52 下一页