private void LoadDiscussionActionControl(Message discussion) { var discussionAction = (DiscussionAction)LoadControl(PathProvider.GetFileStaticRelativePath("Messages/DiscussionAction.ascx")); discussionAction.Discussion = discussion; Master.AddControl(discussionAction); }
protected override void PageLoad() { var action = UrlParameters.ActionType; if (RequestContext.IsInConcreteProject) { if (action.HasValue && action.Value == UrlAction.Edit) { Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx"))); } } else { if (action.HasValue && action.Value == UrlAction.Add) { Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx"))); } } }
protected override void PageLoad() { var action = UrlParameters.ActionType; if (RequestContext.IsInConcreteProject) { if (action.HasValue && action.Value == UrlAction.Edit) { Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx"))); Title = HeaderStringHelper.GetPageTitle(ProjectResource.EditProject); } } else { if (action.HasValue && action.Value == UrlAction.Add) { Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx"))); Title = HeaderStringHelper.GetPageTitle(ProjectResource.CreateNewProject); } } }