protected override void PageLoad() { if (!BookmarkingPermissionsCheck.PermissionCheckCreateBookmark()) { Response.Redirect(BookmarkingRequestConstants.BookmarkingPageName); } BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.CreateBookmark); var c = LoadControl(BookmarkUserControlPath.CreateBookmarkUserControlPath) as CreateBookmarkUserControl; c.IsNewBookmark = true; BookmarkingPageContent.Controls.Add(c); var url = Request.QueryString[BookmarkingRequestConstants.UrlGetRequest]; var s = string.Empty; if (!string.IsNullOrEmpty(url)) { s = string.Format(" getBookmarkUrlInput().val(\"{0}\"); getBookmarkByUrlButtonClick(); ", url.Replace("\"", "\\\"")); } var script = string.Format("showAddBookmarkPanel(); {0}", s); Page.RegisterInlineScript(script); InitBreadcrumbs(BookmarkingUCResource.AddBookmarkLink); Title = HeaderStringHelper.GetPageTitle(BookmarkingUCResource.AddBookmarkLink); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.SelectedBookmark); var c = LoadControl(BookmarkUserControlPath.BookmarkInfoUserControlPath) as BookmarkInfoUserControl; InitBookmarkInfoUserControl(c); var pageTitle = BookmarkingUCResource.BookmarksNavigationItem; var bookmarks = new List <Bookmark> { c.Bookmark }; var bookmarkingUserControl = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath) as BookmarkingUserControl; bookmarkingUserControl.Bookmarks = bookmarks; var b = LoadControl(BookmarkUserControlPath.BookmarkHeaderPageControlPath) as BookmarkHeaderPageControl; b.Title = ServiceHelper.BookmarkToAdd.Name; b.BookmarkID = ServiceHelper.BookmarkToAdd.ID; b.Author = ServiceHelper.BookmarkToAdd.UserCreatorID; BookmarkingPageContent.Controls.Add(b); BookmarkingPageContent.Controls.Add(bookmarkingUserControl); BookmarkingPageContent.Controls.Add(c); InitBreadcrumbs(pageTitle); Title = HeaderStringHelper.GetPageTitle(pageTitle); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.Favourites); var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath); BookmarkingPageContent.Controls.Add(c); InitBreadcrumbs(BookmarkingUCResource.FavouritesNavigationItem); Title = HeaderStringHelper.GetPageTitle(BookmarkingUCResource.FavouritesNavigationItem); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.AllBookmarks); var pageTitle = BookmarkingResource.PageTitle; BookmarkingPageContent.Controls.Add(LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath)); BookmarkingPagingContent.Controls.Add(LoadControl(BookmarkUserControlPath.BookmarkingPagingUserControlPath)); InitBreadcrumbs(pageTitle); Title = HeaderStringHelper.GetPageTitle(pageTitle); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.BookmarksCreatedByUser); var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath); BookmarkingPageContent.Controls.Add(c); PageTitle = ServiceHelper.GetUserNameByRequestParam(); Title = HeaderStringHelper.GetPageTitle(PageTitle); }
protected virtual void InitBreadcrumbs(string pageTitle) { var searchText = ServiceHelper.GetSearchText(); if (!String.IsNullOrEmpty(searchText)) { BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.SearchBookmarks); BookmarkingServiceHelper.UpdateCurrentInstanse(ServiceHelper); return; } searchText = ServiceHelper.GetSearchTag(); if (!String.IsNullOrEmpty(searchText)) { BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.SearchByTag); BookmarkingServiceHelper.UpdateCurrentInstanse(ServiceHelper); var searchResults = String.Format("{0} {1}", BookmarkingUCResource.TagBookmarks, searchText); Title = searchResults; } }