The Custom Module Section
Before implementing a custom module as a user control, let’s discuss some of disadvantages when compared to the approach taken in the last chapter. A custom-module user control does not integrate as closely with the CSK Framework as a fully blown custom module, which ties into searching, sorting, ranking, commenting, and other built-in features. Turn to a user control custom module when you need a small and specific piece of functionality for a community.
As an example, let’s give the administrators of a community the ability to view the list of users who have most recently logged in to the system.
The "Recent Logins" User Control
Our custom module will consist of one ASCX file and one stored procedure. The ASCX file for a custom module must reside in the CustomModules
directory of a community (for the default CSK Lunar .NET community, this is the Communities\Community1\CustomModules
directory). Custom modules are community specific and there is no default directory...