03 2012 档案
摘要:用SQL Server Profiler看sql效率时,发现会隔几秒自动执行一些东西。停掉 SQL Server Reporting Services (MSSQLSERVER) 服务,就不会重复执行那些气人的东西了。
阅读全文
摘要:String CleanInput(string strIn) { // Replace invalid characters with empty strings. // Replace all html tags return Regex.Replace(strIn, @"</?[^>]*>", ""); // Replace html tags div or span //return Regex.Replace(strIn, @"</?(div|span)[^>]*>", "&qu
阅读全文
摘要:Shift+Alt+Enter: 切换全屏编辑 Ctrl+B,T / Ctrl+K,K: 切换书签开关 Ctrl+B,N / Ctrl+K,N: 移动到下一书签 Ctrl+B,P: 移动到上一书签 Ctrl+B,C: 清除全部标签 Ctrl+I: 渐进式搜索 Ctrl+Shift+I: 反向渐进式搜索 Ctrl+F: 查找 Ctrl+Shift+F: 在文件中查找 F3: 查找下一个 Shift+F3: 查找上一个 Ctrl+H: 替换 Ctrl+Shift+H: 在文件中替换 Alt+F12: 查找符号(列出所有查找结果) Ctrl+Shift+V: 剪贴板循环 Ctrl+左右箭头键...
阅读全文
摘要:.net的网站,Viewstate视图状态的隐藏内容有时候会很长,影响到搜索引擎的收录问题,下面这段代码通过重写System.Web.UI.Page中的Render方法,来实现把ViewState调整到网站的底部。View Code using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Web.UI;using System.Threading;using System.Text.RegularExpressions;using
阅读全文
摘要:此文内容由本人与yeagen一起研究,由yeagen总结。yeagen博客园地址:yeagen.cnblogs.com1.Application.Lock和Application.UnLock一般配对出现,用于锁住Lock与UnLock之间的所有代码(注意不光锁住对于Application的赋值)。2.Lock(obj) 于用锁住obj对象,obj对象必须是全局对象(如:Application)。Application.Lock/UnLock的使用方法:Application.Lock(); //其他代码Application["value"]=1; //其他代码Appli
阅读全文