protected override void PageLoad() { BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.SelectedBookmark.ToString()); 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() { if (!BookmarkingPermissionsCheck.PermissionCheckCreateBookmark()) { Response.Redirect(BookmarkingRequestConstants.BookmarkingPageName); } BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.CreateBookmark.ToString()); 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); } var script = string.Format("showAddBookmarkPanel(); {0}", s); Page.RegisterInlineScript(script); InitBreadcrumbs(BookmarkingUCResource.AddBookmarkLink); Title = HeaderStringHelper.GetPageTitle(BookmarkingUCResource.AddBookmarkLink); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.Favourites.ToString()); var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath); BookmarkingPageContent.Controls.Add(c); InitBreadcrumbs(BookmarkingUCResource.FavouritesNavigationItem); Title = HeaderStringHelper.GetPageTitle(BookmarkingUCResource.FavouritesNavigationItem); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.AllBookmarks.ToString()); var pageTitle = BookmarkingResource.PageTitle; BookmarkingPageContent.Controls.Add(LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath)); InitBreadcrumbs(pageTitle); Title = HeaderStringHelper.GetPageTitle(pageTitle); }
protected override void PageLoad() { BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.BookmarksCreatedByUser.ToString()); var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath); BookmarkingPageContent.Controls.Add(c); var pageTitle = ServiceHelper.GetUserNameByRequestParam(); InitBreadcrumbs(pageTitle); Title = HeaderStringHelper.GetPageTitle(pageTitle); }
protected virtual void InitBreadcrumbs(string pageTitle) { var searchText = ServiceHelper.GetSearchText(); if (!String.IsNullOrEmpty(searchText)) { BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.SearchBookmarks.ToString()); BookmarkingServiceHelper.UpdateCurrentInstanse(ServiceHelper); return; } searchText = ServiceHelper.GetSearchTag(); if (!String.IsNullOrEmpty(searchText)) { BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.SearchByTag.ToString()); BookmarkingServiceHelper.UpdateCurrentInstanse(ServiceHelper); var searchResults = String.Format("{0} {1}", BookmarkingUCResource.TagBookmarks, searchText); Title = searchResults; } }