实习
nothing is worse
long long ago,there is nothing
展开
-
ConfigurationManager Usage
Writing this blog is to practice my poor English!1 ConfigurationManager ClassWhen we’d like to use ConfigurationManager,we should reference the configuration DLL. The detail step is the followingc原创 2013-07-31 17:47:24 · 464 阅读 · 0 评论 -
TextBox JS前台赋值触发Onchange事件,屏蔽键盘操作
1. TextBox JS前台赋值触发Onchange事件1) 1.用动态生成的或着Textbox时通过js给input输入框赋值,并不触发input输入框的onchange 事件可以通过以下下方式来解决。 后台C#代码:System.Web.UI.WebControls.TextBoxtextbox = new System.Web.UI.WebControls原创 2013-09-06 09:52:10 · 3137 阅读 · 0 评论 -
SQLServer判断数据库,表,列名,存储过程是否存在
我们可以使用系统表例如sysobjects,sys.databases等等,还可以OBJECT_ID函数;注意: 使用 OBJECT_ID不能查询非架构范围内的对象(如 DDL触发器)。对于在sys.objects目录视图中找不到的对象,需要通过查询适当的目录视图来获取该对象的标识号。例如,若要返回 DDL 触发器的对象标识号,请使用SELECTOBJECT_ID FROM s原创 2013-09-17 13:12:32 · 919 阅读 · 0 评论 -
Webpage has expired 和 动态生成的表Table的第一行固定
1. ASP.NET在按Backword或者Forward的时候,出现错误:Webpagehas expired我们可以用以下方式解决:一种方法是在后台用下面的方法:在Page_load函数中添加以下代码,这样当postback的时候就可以确保page每次都是从Server端获得的:C#代码:Response.Cache.SetCacheability(HttpCa原创 2013-09-11 10:19:25 · 1234 阅读 · 0 评论 -
动态加载的同一个Label的同一行字体显示不同的颜色
ASP.NET动态生成Table时,为了使得动态加载的同一个Label的同一行字体显示不同的颜色, 显示不同颜色的原因是:行号前面有红*表示修改改过的行, 没有红*表示没有修改的行;比如:Label值显示*123, 表示第123行是修改过的,显示123表示地123行没有修改过;Table在后台动态生成Label 的时候,该列表示行号,HtmlTableCell tableCell =原创 2013-08-26 17:22:15 · 1370 阅读 · 0 评论 -
Windows Azure SDK for .NET Configuration And The certificate's private key could not be accessed
1. Windows Azure SDK for .NET ConfigurationYou can download everything from the following website:http://www.microsoft.com/en-us/download/details.aspx?id=354481.1 Manual Installation1) On3原创 2013-08-06 13:01:05 · 2725 阅读 · 0 评论 -
SQL语句执行顺序 in SQL Server 2005
1. Logical Query Processing PhasesAfter reading Inside Microsoft SQL Server 2005 T-SQL Querying, take some notes.This section introduces the phases involved in the logical processing of a quer原创 2013-08-08 11:23:24 · 571 阅读 · 0 评论 -
Sample of LINQ to Entity
1. Sample of LINQ to Entity1.1 CreateASP.NET Web Application1. Start Microsoft Visual Studio 2010IDE. Then In the menu, Click File -> New -> Web Site to Open New Web Sit原创 2013-08-08 10:56:09 · 508 阅读 · 0 评论 -
Visual Studio 目标框架造成 命名空间“Microsoft”中不存在类型或命名空间名称“Crm”。是否缺少程序集引用中错误的处理
I think this blog may help me to better understand Visual Studio configuration, So reprint it. Please Remember that the Original text comes from the following website: http://www.cnblogs.com/StoneGard转载 2013-08-01 11:08:55 · 1191 阅读 · 0 评论 -
CRM利用ObjectCacheManager清除当前XrmServiceContext缓存
C#代码:刚开始利用QueryExpression,在Gridview绑定数据源的时候,不用手动清除上下文中存在的Entity;但是在动态生成Table的时候,我们发现相同的QueryExpression会查出还是以前某一次的查询结果,而不是数据库的最新结果,所以我们要清除一下当前的缓存,方法如下: Var context = new XrmServiceContext();原创 2013-09-09 14:03:59 · 1014 阅读 · 0 评论