摘要: onclick是指调用server端的事件,就是写在CS文件中的。onclientclick是指在控制输出HTML代码时 调用javascript中的事件。自己写代码验证过了,如果一个button里同时有这两个事件,则是先执行onclientclick然后再执行onclick事件。很多时候都是先用onclientclick来做验证。如果验证通过以后再继续执行后台server端的onclick事件。这个时候就要注意onclientclik的用法了。用法一:如果验证失败 则在onclentclick事件里返回false,就不会在执行onclick后台的事件了。//html代码//javascrip 阅读全文
posted @ 2014-02-26 14:24 Cathy Lee 阅读(2189) 评论(0) 推荐(0) 编辑
摘要: 原文:http://msdn.microsoft.com/en-us/library/sbz9etab(v=vs.100).aspx自己尝试翻译下英文文档,一是为了锻炼下自己的英文, 二是为了加深下知识点的记忆。用户控件是需要用在ASP.NET web网页中的,当有一个网页请求时,会从网页中去加载用户控件,加载用户控件的过程和服务器控件一样。1. 对于web 网页来说,首先需要创建一个@Register命令,具体如下:要包括一个 TagPrefix属性,这个属性是与用户控件相关联 并且在引用用户控件的时候做为控件的标签。要包括一个TagName属性,同样是与用户控件相广联 在引用用户控件的时候 阅读全文
posted @ 2014-02-25 14:56 Cathy Lee 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.cnblogs.com/codefish/archive/2013/04/08/3009098.html正在做项目,同事问道有啥简单的方法读取excel到DataTable里面呢? 想也不想直接回到NPOI呀,我觉得满不错的,同事说太麻烦了,要不你找找看。反正手上的项目做的差不多的,习惯性的打开google,感觉已经有了LinqToXml,那LinqToExcel呢?没成想一搜出来了.地址:https://code.google.com/p/linqtoexcel/在使用之前:1.添加引用LinqToExcel.dllRemotion.Data.Linq.dll2.添 阅读全文
posted @ 2014-01-23 11:03 Cathy Lee 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 转:http://msdn.microsoft.com/en-us/library/yx7xezcf(vs.71).aspxTo successfully deploy your .NET Framework application, you must understand how the common language runtime locates and binds to the assemblies that make up your application. By default, the runtime attempts to bind with the exact version 阅读全文
posted @ 2014-01-07 14:12 Cathy Lee 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 转:http://support.microsoft.com/kb/837908This step-by-step article describes three methods that you can use to refer to the assemblies that are located in folders that are not the bin folder of the application.RequirementsThis article assumes that you are familiar with the following topics:General fa 阅读全文
posted @ 2014-01-07 14:11 Cathy Lee 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 用VS 的command 可以直接查看。 阅读全文
posted @ 2014-01-07 10:12 Cathy Lee 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/smallstone/archive/2010/06/29/1767508.html一、GAC的作用 全称是Global Assembly Cache作用是可以存放一些有很多程序都要用到的公共Assembly,例如System.Data、System.Windows.Forms等等。这样,很多程序就可以从GAC里面取得Assembly,而不需要再把所有要用到的Assembly都拷贝到应用程序的执行目录下面。举例而言,如果没有GAC,那么势必每个WinForm程序的目录下就都要从C:\WINDOWS\Microsoft.NET\Framewor 阅读全文
posted @ 2014-01-06 16:21 Cathy Lee 阅读(318) 评论(0) 推荐(0) 编辑
摘要: summary: The run time uses the following steps to resolve an assembly reference:1. Determine the correct assembly version by examining applicableconfiguration files, including the application, publisher policy, andmachine policy c... 阅读全文
posted @ 2014-01-06 16:13 Cathy Lee 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 做现在这个项目的时候 碰到这样一个问题: 关于积分计算,按照正常的思路 在table里面直接存储balance,每次用了 或者是有积分返还的时候 计算以后直接存在表里就可以了,之后不管是报表还是export每个客户的积分的时候 直接从表里面拿出来就可以了。但是这个项目需求理 积分是每个月导入一次,而且只是导入一个积分上限 所以说balance只能临时计算。这样问题就来了,在项目测试的时候,有6000个客户的时候,要计算6000次,每次都要计算已经用过的,用上限减去已用的 得到balance。这个效率很低,6000个客户大概要3分多钟。客户完全不能忍受这个效率。google了一天,找到了一个相对 阅读全文
posted @ 2014-01-03 14:19 Cathy Lee 阅读(474) 评论(0) 推荐(0) 编辑
摘要: from: http://msdn.microsoft.com/en-us/library/bb675163%28v=vs.90%29.aspxTable-valued parameters provide an easy way to marshal multiple rows of data from a client application to SQL Server without requiring multiple round trips or special server-side logic for processing the data. You can use table- 阅读全文
posted @ 2013-11-17 21:53 Cathy Lee 阅读(412) 评论(0) 推荐(0) 编辑