上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 82 下一页
摘要: encryptstring DESCryptoServiceProvider desc = new DESCryptoServiceProvider(); byte[] key = System.Text.Encoding.Unicode.GetBytes(encryptkey); byte[] data = System.Text.Encoding.Unicode.GetBytes(encryp... 阅读全文
posted @ 2010-04-30 20:56 greencolor 阅读(236) 评论(0) 推荐(0) 编辑
摘要: SQL Server中执行带参数的存储过程的方法是:EXEC 存储过程名字 ‘参数1′,’参数2′,数值参数EXEC 是一个关键字。 阅读全文
posted @ 2010-04-30 02:04 greencolor 阅读(162) 评论(0) 推荐(0) 编辑
摘要: // sb sqlstring setting = System.Configuration.ConfigurationManager.AppSettings["ConnectString"].ToString(); SqlConnection myconn = new SqlConnection(setting); myconn.Open(); SqlCommand cmd = new SqlC... 阅读全文
posted @ 2010-04-30 01:31 greencolor 阅读(164) 评论(0) 推荐(0) 编辑
摘要: private ChangeEventHandler onChanged; protected void OnChanged(ChangeEventArgs e) { if (this.onChanged != null) { this.onChanged(this, e); } } 阅读全文
posted @ 2010-04-28 15:33 greencolor 阅读(190) 评论(0) 推荐(0) 编辑
摘要: ASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 <identity sonate="true"/> 模拟,则标识将为匿名用户(通常为IUSR_MACHINENAME... 阅读全文
posted @ 2010-04-25 13:03 greencolor 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Dictionary<string, int> d = new Dictionary<string, int>(); d.Add("cat", 2); d.Add("dog", 1); d.Add("llama", 0); d.Add("iguana", -1);List<string> dd = new List<string>(); dd.Add... 阅读全文
posted @ 2010-04-22 14:53 greencolor 阅读(249) 评论(0) 推荐(0) 编辑
摘要: EditorContext<ProductType>.ShowUITypeEditorif EditorContext is class, not ageneric class, but the ActionListBase is a generic class, Convert toActionListBase<ProductType>.EditorContext.Sho... 阅读全文
posted @ 2010-04-22 13:38 greencolor 阅读(186) 评论(0) 推荐(0) 编辑
摘要: using (MyResource myRes = new MyResource()){ myRes.DoSomething();}==MyResource myRes= new MyResource();try{ myRes.DoSomething();}finally{ // Check for a null resource. if (myRes!= null) // Call the ob... 阅读全文
posted @ 2010-04-22 10:17 greencolor 阅读(174) 评论(0) 推荐(0) 编辑
摘要: decimal.op_Increment== ++decimal.op_Decrement== -- 阅读全文
posted @ 2010-04-21 22:26 greencolor 阅读(1094) 评论(0) 推荐(0) 编辑
摘要: string message = "Hello World"; string result = message ?? "null"; // result = "Hello World";string message = null; string result = message ?? "It's null"; // result = "It's null" 阅读全文
posted @ 2010-04-21 14:01 greencolor 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 82 下一页