自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

转载 前后端Json 配合使用

1. 在server端,我们使用 return new JavaScriptSerializer().Serialize(list); 在client端,使用 JSON.Parse(data) 转载于:https://www.cnblogs.com/alwaysdotnet/p/5701929.html

2016-07-24 23:08:00 179

转载 JSOrgChart

1. Build a org tree use jquery 先动态构建一组UL / LI 对象。然后运行 $("#org").jOrgChart(); function BuildOrg() { var li = document.createElement("li"); //$("#org").append("<li&gt...

2016-07-24 23:06:00 290

转载 Jquery Plugin 初学

今天尝试写了一下Jquery Plugin,算是Jquery 面向对象的一种 有几点心得 1. $.fn 的用法,类似prototype 2.this 必须赋值给局部变量 3. extend的用法 4.如何绑定事件的用法 $.fn.test = function (options) { var settings = $.extend({ ...

2016-03-31 17:29:00 148

转载 Forms authenctication cookie issue

最近在MVC项目上使用 FormsAuthentication ticket,发现cookie怎么也保存不了。 原来是cookie里的size 太大。使得cookie无法保存。 转载于:https://www.cnblogs.com/alwaysdotnet/p/5286464.html...

2016-03-17 10:50:00 163

转载 Enable 32bit dll work on 64bit environment

Jmail http://stackoverflow.com/questions/768336/wrap-32-bit-dll-for-64-bit-operating-system-to-work-with-regsvr32-exe 5 down vote If you want to register the 32-bit COM dll crea...

2015-09-09 17:44:00 137

转载 Failed to start monitoring XXXXX\web.config because access was denied

碰到一个奇怪的问题, 如标题所示, 字面意思是 访问web.config被拒绝。 可事实是在这个目录下没有web.config文件。 后来把这个文件夹与其他可以正常访问的文件夹相比, 在security这个选项下,缺失一个Users 访问permission. 转载于:https://www.cnblogs.com/alwaysdotnet/p/4698551.html...

2015-08-03 09:44:00 497

转载 Crystal Report Insert Image Tip

今天尝试给一个report添加图片,怎么也添加不上。 发现两个关键因素。 1. Resolution: Right click on your report and select Insert >> Picture SINGLE-click on the image that you wish to insert to select it. Click “Op...

2015-05-27 18:12:00 200

转载 Cache 用法

虽然对cache 不陌生,但是第一次感觉比较正式在 asp.net 用。 在一个class里管理cache, 发觉不能new cache, 只能靠传递httpcontext 对象。用内置的cache 才可以。 转载于:https://www.cnblogs.com/alwaysdotnet/p/4449656.html...

2015-04-23 10:35:00 137

转载 Bulk Insert

From David Andres: "Double check that the order of the columns defined in cityTable matches the order of columns within the database table itself." 转载于:https://www.cnblogs.com/alwaysdotnet/p/444...

2015-04-21 18:54:00 106

转载 迁移asp.net项目从 iis 6 到 iis 7

有时候我们会引用一些外部assembly. 这个时候系统会报不是有效的win32程序。 此时需要在IIS7里做些设置 1. Inside IIS (7)click on Application Pools. 2. Find the Application Pool that is configured for your web application in the l...

2015-04-07 17:10:00 153

转载 避免 sub folder web.config 继承 parent folder web.config

在 parent folder web.config 中加 <location path="." allowOverride="false" inheritInChildApplications="false" > <system.web> </system.web> </location> 转载于:https...

2014-10-10 14:51:00 143

转载 jquery attribute selector

Jquery attribute selector非常普遍在日常开发中 今天的case是,通过href 找a <li><a href="#SCOM">SCOM</a></li> $("[href='#VMHost']")[0].click(); 必须加上[0], 之前返回的是一个数组. 转载于:https://www.cnb...

2014-09-09 12:01:00 163

转载 Bat issue

1. 把 bat 文件放到dos 下试。 2. 文件保存为ANSI 加个pause 转载于:https://www.cnblogs.com/alwaysdotnet/p/3949445.html

2014-09-01 16:11:00 167

转载 Stream Read

看过很多回 关于 stream read(byte[] buffer, int offset, int count) 有个问题一直没注意过 offset + count 不能超过 buffer的长度 所以 FileStream stream = new FileStream(txtAttachments.Text, FileMode.Open, FileAccess.Read...

2014-08-20 12:59:00 226

转载 WinForm 上传文件

1.用到一个空间 openFileDialog. 三个特点 1. showDialog(), 打开窗体选择文件 2.FileName, 表示最终选择的文件 3.FileOK event, 用来获取选择的文件 转载于:https://www.cnblogs.com/alwaysdotnet/p/3924320.html...

2014-08-20 12:50:00 166

转载 异步调用方法

delegate 有一个begininvoke 方法, 会开一个新线程去处理。 当需要处理UI 控件时,需要判断,caller是不是和该控件在一个线程上,否则就要用delegate回到ui 线程。 并且调用控件的Invoke方法。 例如 private delegate void SetTextHandler(string msg);     if (txtOutput....

2014-08-19 15:07:00 132

转载 正则表达式

今天的需求是, 把一个文本中的所有被{} 包含的内容找出来. 正则表达式是 Regex reg = new Regex("\\{\\w+\\}"); \{ 表示{ \w 表示字符加数字 \} 表示} + 表示一个以上字符或数字 转载于:https://www.cnblogs.com/alwaysdotnet/p/3922150.html...

2014-08-19 15:03:00 128

转载 LDAP DirectoryEntry access AD User

There is a key parameter for DirectoryEntry ctor() It is the path, we have to find the root path by check AD User screen. Like OU=SYG,OU=CN,OU=Accor-Services,DC=asnet,DC=accorservices,DC=net ...

2014-08-11 17:28:00 265

转载 Reverse Engineer Code First Generate Class Issue

Today I install Power Tools http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d Try to generate poco class. but failed In output there are errors This operation...

2014-07-29 11:24:00 159

转载 粗谈设计模式

这两天在看设计模式,想在这边随便写点. 模式一.装饰者模式 Decorate 书中举的一个例子,就是卖咖啡的问题. 首先coffee 有好多种,摩卡,蓝山等等. 我们会定义一个基类class coffee { decimal cost(); } 然后派生两个类 class mocha : coffee { decimal cost(); } c...

2008-05-23 11:05:00 146

转载 No ideal,no future

Last night I had dinner with two friends,actually they are my ex-manager and new partner. All of us areworking in IT industry also in software but three different roles.So I think it is very in...

2008-05-08 17:32:00 183

转载 关于[META HTTP-EQUIV="REFRESH" CONTENT=2]

今天无意发现一段代码 <META HTTP-EQUIV="REFRESH" CONTENT=2> 在msdn的解释是:causes the browser to reload the document every two seconds. 跟大家分享下. 与此同时,发现cnblog的一个bug 在标题里写上 <META HTTP-EQUIV="REFR...

2008-04-15 14:12:00 348

转载 修改aspx输出的action地址 

有的时候,我们会用httpwebrequest 去request一个页面,然后把内容全部输出,如果两个文件不在一个目录下,并且当被request的页面中存在一些 post 事件,我们会发现,输出之后就不work 了,这时需要,替换输出流的action地址,这样就行了,然后在post一次之后,你会发现,页面地址就变成本身被post的页面的地址了,然后css又找不到了,因为是在两个文件夹下...

2008-04-14 10:09:00 287

转载 关于sql 2005 assembly

sql 2005 有个新功能assembly 发现用C#写的dll,和VB写的dll 在创建assembly时不一样. 转载于:https://www.cnblogs.com/alwaysdotnet/archive/2008/04/09/1144880.html

2008-04-09 14:38:00 157

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除