随笔分类 -  C#

类方法介绐
SessionState 元素(ASP.NET 设置架构) Session值的存储
摘要:<sessionState mode="[Off|InProc|StateServer|SQLServer|Custom]" timeout="number of minutes" cookieName="session identifier cookie name" cookieless= "[true|false|AutoDetect|UseCookies|UseUri|UseDeviceProfile]" regenerateExpiredSessionId="[True|False 阅读全文

posted @ 2011-01-04 09:12 张宏宇 阅读(439) 评论(0) 推荐(0)

页面属性传值
摘要:[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]public class UserControlRenderingPropertyAttribute : Attribute{ string _key; public string Key { get { return _key; }... 阅读全文

posted @ 2010-11-06 10:42 张宏宇 阅读(316) 评论(0) 推荐(0)

利用Hashtable参数添加数据
摘要:/// <summary> /// 通用的添加 /// </summary> /// <param name="ht">Hashtable</param> /// <param name="tableName">表名</param> /// <returns>bool</returns> public ... 阅读全文

posted @ 2010-07-22 10:18 张宏宇 阅读(446) 评论(0) 推荐(0)