public class GridColumnTemplateCommand : ITemplate { #region ITemplate Members public void InstantiateIn(Control container) { if (HttpContext.Current.CurrentHandler is Page) { Page page = (Page)HttpContext.Current.CurrentHandler; Control cActionCell = page.LoadControl(@"~\Shared\Controls\ControlShoppingListTableCellAction.ascx"); container.Controls.Add(cActionCell); } } #endregion }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)