private void Page_Load(object sender, System.EventArgs e) { Utils.SetPageTitle(Page, L10n.Term("DynamicLayout.LBL_EDIT_VIEW_LAYOUT")); // 06/04/2006 Paul. Visibility is already controlled by the ASPX page, but it is probably a good idea to skip the load. this.Visible = SplendidCRM.Security.IS_ADMIN; if (!this.Visible) { return; } ctlNewRecord = ctlHeader.FindControl("ctlNewRecord") as NewRecord; if (ctlNewRecord != null) { ctlNewRecord.Command += new CommandEventHandler(Page_Command); } }
private void Page_Load(object sender, System.EventArgs e) { SetPageTitle(L10n.Term("DynamicLayout.LBL_EDIT_VIEW_LAYOUT")); // 06/04/2006 Paul. Visibility is already controlled by the ASPX page, but it is probably a good idea to skip the load. this.Visible = SplendidCRM.Security.IS_ADMIN; if (!this.Visible) { return; } // 02/08/2007 Paul. The NewRecord control is now in the MasterPage. ContentPlaceHolder plcSidebar = Page.Master.FindControl("cntSidebar") as ContentPlaceHolder; if (plcSidebar != null) { ctlNewRecord = plcSidebar.FindControl("ctlNewRecord") as NewRecord; if (ctlNewRecord != null) { ctlNewRecord.Command += new CommandEventHandler(Page_Command); } } }
private void Page_Load(object sender, System.EventArgs e) { Utils.SetPageTitle(Page, L10n.Term("DynamicLayout.LBL_EDIT_VIEW_LAYOUT")); // 06/04/2006 Paul. Visibility is already controlled by the ASPX page, but it is probably a good idea to skip the load. this.Visible = SplendidCRM.Security.IS_ADMIN; if ( !this.Visible ) return; ctlNewRecord = ctlHeader.FindControl("ctlNewRecord") as NewRecord; if ( ctlNewRecord != null ) { ctlNewRecord.Command += new CommandEventHandler(Page_Command); } }
private void Page_Load(object sender, System.EventArgs e) { SetPageTitle(L10n.Term("DynamicLayout.LBL_EDIT_VIEW_LAYOUT")); // 06/04/2006 Paul. Visibility is already controlled by the ASPX page, but it is probably a good idea to skip the load. this.Visible = SplendidCRM.Security.IS_ADMIN; if ( !this.Visible ) return; // 02/08/2007 Paul. The NewRecord control is now in the MasterPage. ContentPlaceHolder plcSidebar = Page.Master.FindControl("cntSidebar") as ContentPlaceHolder; if ( plcSidebar != null ) { ctlNewRecord = plcSidebar.FindControl("ctlNewRecord") as NewRecord; if ( ctlNewRecord != null ) { ctlNewRecord.Command += new CommandEventHandler(Page_Command); } } }