摘要: using System;using System.Reflection;using System.Collections;using System.Collections.Generic;namespace AttributeMeta{ [AttributeUsage(AttributeTargets.Field | AttributeTargets.Enum)] public class EnumDescription : Attribute { private FieldInfo fieldInfo; public EnumDescripti... 阅读全文
posted @ 2014-03-03 16:05 小川丶 阅读(986) 评论(0) 推荐(0) 编辑
摘要: /// /// 汉字转换为Unicode编码 /// /// 要编码的汉字字符串 /// Unicode编码的的字符串 public static string ToUnicode(string str) { byte[] bts = Encoding.Unicode.GetBytes(str); string r = ""; for (int i = 0; i /// 将Unicode编码转换为汉字字符串 //... 阅读全文
posted @ 2013-11-28 13:30 小川丶 阅读(349) 评论(0) 推荐(0) 编辑
摘要: createEditor("newsEditer"); //创建一个editer//editer 最大化CKEDITOR.instances["newsEditer"].on('instanceReady', function (event) { var editor = event.editor; setTimeout(function () { // Delay bit more if editor is still not ready. if (!editor.element) { setTimeout(arguments.call 阅读全文
posted @ 2013-11-27 10:06 小川丶 阅读(822) 评论(0) 推荐(0) 编辑
摘要: javascript:<script> test = "转义字符" str = "" for( i=0;i<test.length; i++ ) { temp = test.charCodeAt(i).toString(16); str += "\\u"+ new Array(5-String(temp).length).join("0") +temp; } document.write (str) alert(eval("'"+str+"'" 阅读全文
posted @ 2013-04-01 09:27 小川丶 阅读(4393) 评论(0) 推荐(0) 编辑
摘要: <location path="Upload/UploadFile"> <system.web> <authorization> <deny users="?" /> <allow users="*" /> </authorization> <httpRuntime maxRequestLength="2147483647"/> </system.web> <system.webServer> <sec 阅读全文
posted @ 2013-03-13 13:55 小川丶 阅读(230) 评论(0) 推荐(0) 编辑
摘要: use master go if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_killspid]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[p_killspid] GO create proc p_killspid @dbname varchar(200) --要关闭进程的数据库名 as declare @sql nvarchar(500) declare @spid nvar 阅读全文
posted @ 2013-03-10 14:33 小川丶 阅读(212) 评论(0) 推荐(0) 编辑
摘要: cn_visual_studio_team_foundation_server_2010_x86_x64_dvd_531909 阅读全文
posted @ 2013-03-05 15:43 小川丶 阅读(549) 评论(0) 推荐(0) 编辑
摘要: tf undo /workspace:工作区;用户名服务器路径 /server:服务器地址 阅读全文
posted @ 2013-02-22 12:59 小川丶 阅读(977) 评论(0) 推荐(0) 编辑
摘要: string downfile = filename; if (Request.UserAgent.ToLower().IndexOf("msie") > -1) { downfile = HttpUtility.UrlPathEncode(filename); } if (Request.UserAgent.ToLower().IndexOf("firefox") > -1) { ... 阅读全文
posted @ 2013-01-10 15:37 小川丶 阅读(203) 评论(0) 推荐(0) 编辑
摘要: use mastergo if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_killspid]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[p_killspid]GO create proc p_killspid@dbname varchar(200) --要关闭进程的数据库名as declare @sql nvarchar(500) declare... 阅读全文
posted @ 2013-01-10 10:28 小川丶 阅读(458) 评论(0) 推荐(0) 编辑