Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何在代码中探索在 Orchard CMS 中现在打开的页面“管理面板”或“前端”?
只需使用AdminFilter.IsApplied(requestContext). 当用户在管理仪表板中时,这是真的。
AdminFilter.IsApplied(requestContext)