.TEXT居然不能在随笔编辑界面贴图!
本来它用FTB控件,是支持上传贴图的,可是因为.TEXT接管了所有请求,把对上传图片aspx的请求转给default.aspx了。害得我搞了半天都不行,原来……真是有够恶心啊。改天得修理修理,没有贴图太烦人啦。
阅读全文 »这个看起来不错
FxCop is a code analysis tool that checks .NET managed code assemblies for conformance to the Microsoft .NET Framework Design Guidelines. It uses reflection, MSIL parsing, and callgraph analysis to inspect assemblies for more than 200 defects in the following areas: naming conventions, library design, localization, security, and performance (see Rule Topics). FxCop includes both GUI and command line versions of the tool, as well as an SDK to create your own rules.
FxCop must be running under the same version of the .NET Framework as that used to compile the assemblies it analyzes.
Please select the correct version of FxCop.
阅读全文 »
兵器谱之Application Block
About IBS Portal
IBS Portal真是经典的范例,实在值得好好研究。看看这两个Method:
//********************************************************************* // // PortalSecurity.IsInRole() Method // // The IsInRole method enables developers to easily check the role // status of the current browser client. // //********************************************************************* public static bool IsInRole(String role) { return HttpContext.Current.User.IsInRole(role); } //********************************************************************* // // PortalSecurity.IsInRoles() Method // // The IsInRoles method enables developers to easily check the role // status of the current browser client against an array of roles // //********************************************************************* public static bool IsInRoles(String roles) { HttpContext context = HttpContext.Current; foreach (String role in roles.Split( new char[] {';'} )) { if (role != "" && role != null && ((role == "All Users") || (context.User.IsInRole(role)))) { return true; } } return false; }阅读全文 »