学术=不学无术?
今天参加了一个所谓的“学术研讨会”,结果搞得自己很郁闷。有些演讲人,连自己都没搞清楚的问题,怎么好意思拿到大庭广众之下现眼?! 难道真是学术就是不学无术?郁闷ing...>
阅读全文 »今天参加了一个所谓的“学术研讨会”,结果搞得自己很郁闷。有些演讲人,连自己都没搞清楚的问题,怎么好意思拿到大庭广众之下现眼?! 难道真是学术就是不学无术?郁闷ing...>
阅读全文 »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;
}
阅读全文 »