This example demonstrates how to create a custom action that accepts two parameters (a DateTime range), how to extend the web ActionContainerHolder to create a custom action item with a complex control. The code is based on the built-in ParametrizedAction item. Note that it is required to place a custom ActionContainerHolder to our web templates (aspx pages) instead of the default ActionContainerHolder, otherwise a custom action item will not be created. See how this is done in the DefaultTemplateContent1.ascx file. For additional information, refer to the How to: Customize an ASP.NET Template topic.
↧