摘要:
数据定义 1 public interface ICustomConfigurationGroup{} 2 public interface ICustomConfigurationSection{} 3 4 public class CustomConfigurationGroup : ConfigurationSectionGroup, ICustomConfigurationGroup 5 { 6 } 7 8 public class CustomConfigurationSection : ConfigurationSec... 阅读全文
posted @ 2012-11-24 22:57
极简
阅读(1244)
评论(0)
推荐(0)
摘要:
【Excel 导入SQL错误】实例:[styling]字段Error 0xc020902a: Data Flow Task 1: The "output column "styling" (96)" failed because truncation occurred, and the truncation row disposition on "output column "styling" (96)" specifies failure on truncation. A truncation error occ 阅读全文
posted @ 2012-11-24 20:35
极简
阅读(1403)
评论(0)
推荐(0)
摘要:
SSO:SSO英文全称Single Sign On,单点登录。SSO是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。它包括可以将这次主要的登录映射到其他应用中用于同一个用户的登录的机制。如果你的Asp.Net程序执行时碰到这种错误:"验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate。”那么说明你没有让你的应用程序使用统一的machineKey,那么machineKey的作用是什么呢?按照MSDN的标准说 阅读全文
posted @ 2012-11-24 20:33
极简
阅读(964)
评论(0)
推荐(0)
摘要:
获取枚举的Description Attribute: 1 public static string GetEnumDescription(Enum enumSubitem) 2 { 3 if (enumSubitem == null) 4 return String.Empty; 5 6 string strValue = enumSubitem.ToString(); 7 8 System.Reflection.FieldInfo fieldinfo = enumS... 阅读全文
posted @ 2012-11-24 20:33
极简
阅读(403)
评论(0)
推荐(0)
摘要:
Global1 void Application_AuthenticateRequest(object sender, EventArgs e)2 {3 UserHelper.SetRoles();4 }Login: 1 protected void LoginUser_Authenticate(object sender, AuthenticateEventArgs e) 2 { 3 string username=LoginUser.UserName; 4 ... 阅读全文
posted @ 2012-11-24 20:33
极简
阅读(414)
评论(0)
推荐(0)
摘要:
Handler类:DefaultRouteHandler 1 public class DefaultRouteHandler:IRouteHandler 2 { 3 4 IHttpHandler IRouteHandler.GetHttpHandler(RequestContext requestContext) 5 { 6 if (requestContext == null) 7 throw new ArgumentNullException("requestContext")... 阅读全文
posted @ 2012-11-24 20:32
极简
阅读(334)
评论(0)
推荐(0)
浙公网安备 33010602011771号