protected void OnTextEnter(object sender, EventArgs e) { string tag = txtTag.Text; if (tag.Length > 0) { QuickParameters quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.Amount = 50; quickParameters.PageSize = 50; quickParameters.DisablePaging = true; quickParameters.Title = tag; quickParameters.SortBy = QuickSort.Title; quickParameters.Direction = QuickSortDirection.Asc; quickParameters.ShowState = ObjectShowState.Published; quickParameters.ObjectStatus = ObjectStatus.Public; var tags = DataObjects.Load <DataObjectTag>(quickParameters); if (tags.Count > 0) { repSuggest.DataSource = tags; repSuggest.DataBind(); pnlSuggest.Visible = true; } else { pnlSuggest.Visible = false; } } else { pnlSuggest.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { UserDataContext udc = UserDataContext.GetUserDataContext(); DataObjectCommunity myProfile = DataObject.Load <DataObjectCommunity>(UserProfile.Current.ProfileCommunityID); QuickParameters quickParameters = new QuickParameters() { Udc = udc, UserID = UserProfile.Current.UserId, IgnoreCache = true, MembershipParams = new MembershipParams { UserID = UserProfile.Current.UserId } }; List <DataObjectCommunity> involvedCommunities = DataObjects.Load <DataObjectCommunity>(quickParameters); involvedCommunities.Insert(0, myProfile); this.CTYS.DataSource = involvedCommunities; this.CTYS.DataBind(); if (!string.IsNullOrEmpty(CloseWindowJavaScript)) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "CloseWindowJavaScript", CloseWindowJavaScript, false); } }
public string LoadMarkers(Dictionary <string, string> objectTypesAndTags) { StringBuilder sb = new StringBuilder(); foreach (var objectTypeAndTags in objectTypesAndTags) { QuickParameters quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ObjectType = Common.Helper.GetObjectTypeNumericID(objectTypeAndTags.Key); quickParameters.Tags1 = QuickParameters.GetDelimitedTagIds(objectTypeAndTags.Value, ','); quickParameters.Amount = 500; quickParameters.DisablePaging = true; quickParameters.OnlyGeoTagged = true; quickParameters.ShowState = ObjectShowState.Published; quickParameters.QuerySourceType = QuerySourceType.Page; var dataObjects = DataObjects.Load <DataObject>(quickParameters); foreach (var dataObject in dataObjects.DistinctBy((x, y) => x.Geo_Lat + x.Geo_Long == y.Geo_Lat + y.Geo_Long)) { string tag = string.Empty; foreach (var currentTag in objectTypeAndTags.Value.Split(',')) { if (!string.IsNullOrEmpty(currentTag) && dataObject.TagList.ToLower().Contains(currentTag.ToLower())) { tag = "_" + currentTag.ToLower(); } } sb.AppendLine(string.Format("AddMapMarker({0}, {1}, '{2}', '{3}', '{4}');", dataObject.Geo_Lat, dataObject.Geo_Long, tag, dataObject.ObjectID, dataObject.ObjectType)); } } return(sb.ToString()); }
private IRepeater LoadMyObjects(int pageSize, bool showPagerTop, bool showPagerBottom, int amount, QuickSort sortBy, string repeater, string template, int relatedObjectType, string tagList, Guid?excludeObjectId) { DataObject community = DataObject.Load <DataObject>(this.CommunityID); QuickParameters paras = new QuickParameters(); paras.Udc = UserDataContext.GetUserDataContext(); paras.ObjectType = relatedObjectType; paras.Tags1 = QuickParameters.GetDelimitedTagIds(tagList, Constants.TAG_DELIMITER); paras.ExcludeObjectIds = excludeObjectId.ToString(); if (amount >= 0) { paras.Amount = amount; } paras.PageNumber = 1; paras.PageSize = pageSize; paras.DisablePaging = (!showPagerTop && !showPagerBottom); paras.SortBy = QuickSort.Title; if (sortBy == QuickSort.Title) { paras.Direction = QuickSortDirection.Asc; } paras.IgnoreCache = false; paras.WithCopy = false; paras.OnlyConverted = true; paras.ShowState = ObjectShowState.Published; Control ctrl = LoadControl("~/UserControls/Repeaters/" + repeater); IRepeater overview = ctrl as IRepeater; if (overview != null) { overview.QuickParameters = paras; overview.OutputTemplate = template; overview.TopPagerVisible = showPagerTop; overview.BottomPagerVisible = showPagerBottom; } ISettings settings = ctrl as ISettings; if (settings != null) { if (settings.Settings == null) { settings.Settings = new System.Collections.Generic.Dictionary <string, object>(); } if (!settings.Settings.ContainsKey("ParentPageType")) { settings.Settings.Add("ParentPageType", (int)_Host.ParentPageType); } settings.Settings.Add("Width", _Host.ColumnWidth); } return(overview); }
private void LoadDefaultQuickParameters() { quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.CurrentObjectID = DataObject.ObjectID; quickParameters.PageSize = pageSize; quickParameters.SortBy = QuickSort.InsertedDate; quickParameters.Amount = 0; }
protected void lbtnSR_Click(object sender, EventArgs e) { template = Helper.GetObjectType(objectType).SearchForSelectCtrl; Guid UserID = UserProfile.Current.UserId; QuickParameters qp = new QuickParameters(); qp.Direction = QuickSortDirection.Desc; qp.SortBy = QuickSort.StartDate; qp.Title = TxtSearch.Text; qp.Description = TxtSearch.Text; string[] tagLists = TxtTagword.Text.ToLower().Replace(" ", " ").Replace(" or ", "¦").Split('¦'); if (tagLists.Length > 0) { qp.Tags1 = QuickParameters.GetDelimitedTagIds(tagLists[0].Trim().Replace(" ", Constants.TAG_DELIMITER.ToString()), Constants.TAG_DELIMITER); } if (tagLists.Length > 1) { qp.Tags2 = QuickParameters.GetDelimitedTagIds(tagLists[1].Trim().Replace(" ", Constants.TAG_DELIMITER.ToString()), Constants.TAG_DELIMITER); } if (tagLists.Length > 2) { qp.Tags3 = QuickParameters.GetDelimitedTagIds(tagLists[2].Trim().Replace(" ", Constants.TAG_DELIMITER.ToString()), Constants.TAG_DELIMITER); } qp.Udc = UserDataContext.GetUserDataContext(); qp.ObjectType = Helper.GetObjectTypeNumericID(objectType); qp.ShowState = ObjectShowState.Published; qp.DisablePaging = true; qp.CatalogSearchType = DBCatalogSearchType.ContainsTable; if (ParentDataObject.ObjectType == Helper.GetObjectTypeNumericID("ProfileCommunity")) { qp.Udc = UserDataContext.GetUserDataContext(Constants.ANONYMOUS_USERID); qp.CommunityID = null; qp.Communities = null; qp.UserID = UserID; } //If its a CMSPage Search Text is the name of an object that is in any Public community else if (ParentDataObject.ObjectType == Helper.GetObjectTypeNumericID("Page")) { qp.Udc = UserDataContext.GetUserDataContext(Constants.ANONYMOUS_USERID); qp.CommunityID = null; qp.Communities = null; qp.UserID = null; } else if (ParentDataObject.ObjectType == Helper.GetObjectTypeNumericID("Community")) { qp.Udc = UserDataContext.GetUserDataContext(); qp.CommunityID = ParentDataObject.CommunityID; } this.OBJOVW.DataSource = DataObjects.LoadByReflection(qp); this.OBJOVW.DataBind(); }
public override bool ShowObject(string settingsXml) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(settingsXml); bool urlOverride = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Url", false); string mapPreset = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "MapPreset", "Default"); MapStyle mapStyle = (MapStyle)Enum.Parse(typeof(MapStyle), XmlHelper.GetElementValue(xmlDocument.DocumentElement, "MapStyle", MapStyle.Aerial.ToString())); MapNavigation mapNavigation = (MapNavigation)Enum.Parse(typeof(MapNavigation), XmlHelper.GetElementValue(xmlDocument.DocumentElement, "MapNavigation", MapNavigation.Normal.ToString())); double latitude = (double)XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Latitude", 47.05m); double longitude = (double)XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Longitude", 8.3m); int zoom = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Zoom", 8); IMap map = (IMap)LoadControl("~/UserControls/GoogleMap.ascx"); if (urlOverride) { map.MapLayout = MapLayout.MapOnly; if (!string.IsNullOrEmpty(Request.QueryString["OID"])) { map.ObjectId = Request.QueryString["OID"].ToGuid(); } else { QuickParameters quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.QuerySourceType = QuerySourceType.Page; quickParameters.OnlyGeoTagged = true; quickParameters.FromNameValueCollection(Request.QueryString); quickParameters.Amount = 1000; quickParameters.DisablePaging = true; quickParameters.ShowState = ObjectShowState.Published; quickParameters.QuerySourceType = QuerySourceType.Page; map.QuickParameters = quickParameters; } } else { var mapSettings = MapSection.CachedInstance.Maps[mapPreset]; map.MapLayout = mapSettings.MapLayout; map.ObjectTypesAndTags = mapSettings.ObjectTypes.LINQEnumarable.ToList(); } map.Zoom = zoom; map.Latitude = latitude; map.Longitude = longitude; map.MapNaviation = mapNavigation; map.MapStyle = mapStyle; int width = map.MapLayout == MapLayout.MapOnly ? WidgetHost.ColumnWidth - WidgetHost.ContentPadding : WidgetHost.ColumnWidth - WidgetHost.ContentPadding - 200; map.Width = width; map.Height = (int)Math.Round(width * 0.75); Ph.Controls.Add((UserControl)map); return(map.HasContent); }
public override bool ShowObject(string settingsXml) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(settingsXml); var searchableObjectTypes = SiteObjectSection.CachedInstance.SiteObjects.LINQEnumarable.Where(x => x.IsSearchable); Dictionary <int, int> numberItems = new Dictionary <int, int>(); foreach (var objectType in searchableObjectTypes) { QuickParameters quickParameters = new QuickParameters(); quickParameters.FromNameValueCollection(Request.QueryString); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ObjectType = objectType.NumericId; quickParameters.PageSize = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "NumberResults", 5); quickParameters.Amount = objectType.DefaultLoadAmount; quickParameters.SortBy = QuickSort.Title; quickParameters.Direction = QuickSortDirection.Asc; quickParameters.ShowState = ObjectShowState.Published; quickParameters.DateQueryMethode = QuickDateQueryMethode.BetweenStartOpenEndOpen; quickParameters.FromStartDate = DateTime.Now; quickParameters.ToEndDate = DateTime.Now; Control control = LoadControl("~/UserControls/Repeaters/SearchResults.ascx"); control.ID = "SRB" + objectType.NumericId; IRepeater overview = control as IRepeater; if (overview != null) { overview.QuickParameters = quickParameters; overview.OutputTemplate = ""; // template; overview.TopPagerVisible = false; overview.BottomPagerVisible = true; } Ph.Controls.Add(control); if (((IBrowsable)control).GetNumberItems() > 0) { numberItems.Add(objectType.NumericId, ((IBrowsable)control).GetNumberItems()); } } DlRes.DataSource = numberItems; DlRes.DataBind(); if (numberItems.Count == 0) { Ph.Controls.Add(new LiteralControl(GuiLanguage.GetGuiLanguage("WidgetSearchResults").GetString("MessageNothingFound"))); } return(true); }
private IRepeater LoadMyMemberships(int pageSize, bool showPagerTop, bool showPagerBottom, int amount, QuickSort sortBy, string repeater, string template) { DataObject community = DataObject.Load <DataObject>(this.WidgetHost.ParentCommunityID); QuickParameters paras = new QuickParameters(); paras.ObjectType = 1; paras.Udc = UserDataContext.GetUserDataContext(); paras.MembershipParams = new MembershipParams() { UserID = community.UserID }; paras.Amount = amount; paras.PageNumber = 1; paras.PageSize = pageSize; paras.DisablePaging = (!showPagerTop && !showPagerBottom); paras.SortBy = QuickSort.Title; paras.Direction = QuickSortDirection.Asc; paras.IgnoreCache = false; paras.WithCopy = false; paras.OnlyConverted = true; paras.ShowState = ObjectShowState.Published; Control ctrl = LoadControl("~/UserControls/Repeaters/" + repeater); IRepeater overview = ctrl as IRepeater; if (overview != null) { overview.QuickParameters = paras; overview.OutputTemplate = template; overview.TopPagerVisible = showPagerTop; overview.BottomPagerVisible = showPagerBottom; overview.ItemNameSingular = language.GetString("TextMyMembershipsSingular"); overview.ItemNamePlural = language.GetString("TextMyMembershipsPlural"); } ISettings settings = ctrl as ISettings; if (settings != null) { if (settings.Settings == null) { settings.Settings = new System.Collections.Generic.Dictionary <string, object>(); } if (!settings.Settings.ContainsKey("ParentPageType")) { settings.Settings.Add("ParentPageType", (int)WidgetHost.ParentPageType); } } return(overview); }
private bool HasGroups(Guid communityID) { QuickParameters quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ParentObjectID = communityID.ToString(); quickParameters.ObjectType = 1; quickParameters.Amount = 1; quickParameters.DisablePaging = true; return(DataObjects.Load <DataObject>(quickParameters).Count > 0); }
protected void Page_Load(object sender, EventArgs e) { _4screen.CSB.Extensions.Business.TrackingManager.TrackEventPage(null, null, IsPostBack, LogSitePageType.Overview); QuickParameters quickParameters = new QuickParameters(); quickParameters.FromNameValueCollection(Request.QueryString); Response.Clear(); Response.ContentType = "application/rss+xml"; Response.Write(_4screen.CSB.DataAccess.Business.RssEngine.GetFeed(quickParameters, "rss")); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { pager.PageSize = pageSize; quickParameters = new QuickParameters(); quickParameters.SortBy = QuickSort.StartDate; quickParameters.Direction = QuickSortDirection.Desc; quickParameters.FromNameValueCollection(Request.QueryString); quickParameters.PageSize = pageSize; quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ShowState = ObjectShowState.Published; currentPage = quickParameters.PageNumber; LitTitle.Text = Helper.GetObjectName(quickParameters.ObjectType, false); Reload(); }
protected void Reload() { UserDataContext udc = UserDataContext.GetUserDataContext(); List <DataObject> siblings = null; if (this.LoadType == SpecialLoadType.LoadTypeEventJoinedUser) { /* TODO: Joined user über obj to obj realisieren * * DataObjectEvent objEvent = (DataObjectEvent)dataObject; * siblings = DataObjects.LoadByObjectID<DataObject>(objEvent.JoinedUser.Split(';'), new QuickParameters() { Udc = udc, ShowState = ObjectShowState.Published }); * totalItems = siblings.Count;*/ } else if (folderId.HasValue) { siblings = DataObjects.Load <DataObject>(new QuickParameters { RelationParams = new RelationParams { ParentObjectID = folderId }, ShowState = ObjectShowState.Published, Amount = 0, Direction = QuickSortDirection.Asc, PageNumber = currentPage, PageSize = pageSize, SortBy = QuickSort.RelationSortNumber, Udc = UserDataContext.GetUserDataContext() }); totalItems = ((DataObjectList <DataObject>)siblings).ItemTotal; } else { QuickParameters quickParameters = new QuickParameters() { Udc = udc, Amount = 0, PageSize = pageSize, PageNumber = currentPage, ObjectType = dataObject.ObjectType, CommunityID = dataObject.CommunityID, ShowState = ObjectShowState.Published, WithCopy = true }; quickParameters.QuerySourceType = QuerySourceType.Page; if (autoSelectCurrentPage) { quickParameters.CurrentObjectID = dataObject.ObjectID; quickParameters.IgnoreCache = true; } siblings = DataObjects.Load <DataObject>(quickParameters); totalItems = ((DataObjectList <DataObject>)siblings).ItemTotal; currentPage = ((DataObjectList <DataObject>)siblings).PageNumber; } this.DLObjects.DataSource = siblings; this.DLObjects.DataBind(); this.Pager.InitPager(currentPage, totalItems); }
private IRepeater CreateControl(QuickParameters paras, bool showPagerTop, bool showPagerBottom, string repeater, string template, bool manageSiblings, bool renderHtml) { Control ctrl = LoadControl("~/UserControls/Repeaters/" + repeater); IRepeater overview = ctrl as IRepeater; if (overview != null) { overview.QuickParameters = paras; overview.OutputTemplate = template; overview.TopPagerVisible = showPagerTop; overview.BottomPagerVisible = showPagerBottom; overview.RenderHtml = renderHtml; } ISettings settings = ctrl as ISettings; if (settings != null) { if (settings.Settings == null) { settings.Settings = new System.Collections.Generic.Dictionary <string, object>(); } if (!settings.Settings.ContainsKey("ParentPageType")) { settings.Settings.Add("ParentPageType", (int)WidgetHost.ParentPageType); } if (WidgetHost.WidgetInstance.INS_HeadingTag.HasValue) { settings.Settings["HeadingTag"] = WidgetHost.WidgetInstance.INS_HeadingTag.Value; } if (manageSiblings) { settings.Settings.Add("SelectCurrentPage", manageSiblings); } settings.Settings.Add("Width", WidgetHost.ColumnWidth - WidgetHost.ContentPadding); settings.Settings.Add("WidgetInstanceId", WidgetHost.WidgetInstance.INS_ID.ToString()); } return(overview); }
protected void Page_Load(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(500); if (type.Equals("Comment")) { sb.AppendFormat("<div class=\"commentInfo\">{0}</div>", comment.Inserted.ToShortDateString() + " " + comment.Inserted.ToShortTimeString()); if (StripHtml) { sb.AppendFormat("<div>{0}</div>", comment.Description.StripHTMLTags().CropString(300)); } else { sb.AppendFormat("<div>{0}</div>", comment.DescriptionLinked); } Ph.Controls.Add(new LiteralControl(sb.ToString())); } else if (type.Equals("Object")) { HyperLink link = new HyperLink(); QuickParameters quickParams = new QuickParameters { Udc = UserDataContext.GetUserDataContext(), QuerySourceType = QuerySourceType.Profile, RelationParams = new RelationParams { ChildObjectID = comment.ObjectID } }; DataObjectList <DataObject> dataObjects = DataObjects.Load <DataObject>(quickParams); if (dataObjects.Count == 1) { DataObject dataObject = dataObjects[0]; link.NavigateUrl = Helper.GetDetailLink(dataObject.ObjectType, dataObject.ObjectID.ToString()); sb.AppendFormat("<div>{0}</div>", Helper.GetObjectName(dataObject.ObjectType, true)); sb.AppendFormat("<img src=\"{0}{1}\">", SiteConfig.MediaDomainName, dataObject.GetImage(PictureVersion.XS)); } else { sb.AppendFormat("---"); } link.Text = sb.ToString(); Ph.Controls.Add(link); } }
private void Search() { if (txtSrchGnr.Text.Trim().Length > 0) { QuickParameters quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ObjectType = 5; quickParameters.PageSize = 50; quickParameters.Amount = 50; quickParameters.Title = txtSrchGnr.Text; quickParameters.IgnoreCache = true; quickParameters.SortBy = QuickSort.Title; quickParameters.Direction = QuickSortDirection.Asc; DataObjectList <DataObjectTag> tags = DataObjects.Load <DataObjectTag>(quickParameters); rptTag.DataSource = tags; rptTag.DataBind(); } }
public void RenderOverviewPageBreadCrumbs(QuickParameters quickParameters) { HyperLink userOrCommunityLink = null; if (CustomizationSection.CachedInstance.Common.BreadCrumbUserOrCommunityEnabled) { if (!string.IsNullOrEmpty(Request.QueryString["XUI"])) { MembershipUser membershipUser = Membership.GetUser(new Guid(Request.QueryString["XUI"]), false); userOrCommunityLink = new HyperLink(); userOrCommunityLink.Text = membershipUser.UserName; userOrCommunityLink.NavigateUrl = Helper.GetDetailLink("User", membershipUser.UserName); } else if (!string.IsNullOrEmpty(Request.QueryString["XCN"])) { Guid communityId = new Guid(Request.QueryString["XCN"]); DataObjectCommunity community = DataAccess.Business.DataObject.Load <DataObjectCommunity>(communityId); userOrCommunityLink = new HyperLink(); userOrCommunityLink.Text = community.Title; userOrCommunityLink.NavigateUrl = Helper.GetDetailLink(community.ObjectType, community.VirtualURL); } } // Set page title if (userOrCommunityLink == null) { this.Page.Master.Page.Title = string.Format(CustomizationSection.CachedInstance.Common.TitleFormat1, SiteConfig.SiteName, Helper.GetObjectName(quickParameters.ObjectType, false)); } else { this.Page.Master.Page.Title = string.Format(CustomizationSection.CachedInstance.Common.TitleFormat2, SiteConfig.SiteName, userOrCommunityLink.Text, Helper.GetObjectName(quickParameters.ObjectType, false)); } // Set breadcrumbs this.BreadCrumpImage = string.Format("/Library/Images/Layout/{0}", Helper.GetObjectIcon(quickParameters.ObjectType)); this.breadCrumbs.Clear(); if (userOrCommunityLink != null) { this.BreadCrumbs.Add(userOrCommunityLink); } this.BreadCrumbs.Add(new LiteralControl(string.Format("<h1>{0}</h1>", Helper.GetObjectName(quickParameters.ObjectType, false)))); this.RenderBreadCrumbs(); }
private DataObject LoadBySource(int objectType, int source) { QuickParameters qp = new QuickParameters(); qp.Direction = QuickSortDirection.Desc; qp.SortBy = (QuickSort)source; qp.IgnoreCache = (qp.SortBy == QuickSort.Random); qp.ObjectType = Helper.GetObjectTypeNumericID(objectType); qp.ShowState = ObjectShowState.Published; qp.DisablePaging = true; qp.Amount = 1; if (this.WidgetHost.ParentObjectType == Helper.GetObjectTypeNumericID("ProfileCommunity")) { qp.Udc = UserDataContext.GetUserDataContext(Constants.ANONYMOUS_USERID); qp.CommunityID = null; qp.Communities = null; qp.UserID = UserDataContext.GetUserDataContext().UserID; } else if (this.WidgetHost.ParentObjectType == Helper.GetObjectTypeNumericID("Page")) { qp.Udc = UserDataContext.GetUserDataContext(Constants.ANONYMOUS_USERID); qp.CommunityID = null; qp.Communities = null; qp.UserID = null; } else if (this.WidgetHost.ParentObjectType == Helper.GetObjectTypeNumericID("Community")) { qp.Udc = UserDataContext.GetUserDataContext(); qp.CommunityID = this.WidgetHost.ParentCommunityID; } DataObjectList <DataObject> list = DataObjects.LoadByReflection(qp); if (list.Count > 0) { return(list[0]); } else { return(new DataObject()); } }
private string GetSubTags() { string retVal = string.Empty; QuickParameters qp = new QuickParameters { Udc = userDataContext, RelationParams = new RelationParams { RelationType = "Hierarchy", ParentObjectID = Tag.ObjectID, ExcludeSystemObjects = false } }; DataObjectList <DataObject> tags = DataObjects.Load <DataObject>(qp); IsGroupTag = tags.Count > 0; foreach (DataObject dataObj in tags) { retVal += string.Format("{0},", dataObj.Title); } return(retVal.TrimEnd(',')); }
private string GetSynonymFor() { string retVal = string.Empty; QuickParameters qp = new QuickParameters { Udc = userDataContext, ShowState = null, IgnoreCache = true, ObjectType = 5, RelationParams = new RelationParams { RelationType = "Synonym", ChildObjectType = 5, ChildObjectID = Tag.ObjectID, ExcludeSystemObjects = false } }; DataObjectList <DataObject> tags = DataObjects.Load <DataObject>(qp); foreach (DataObject dataObj in tags) { retVal += string.Format("{0},", dataObj.Title); } return(retVal.TrimEnd(',')); }
public object LoadMarkerDetails(string objectId, string latitude, string longitude, List <string> objectTypes) { StringBuilder sb = new StringBuilder(); foreach (var objectType in objectTypes) { QuickParameters quickParameters = new QuickParameters(); quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ObjectType = Common.Helper.GetObjectTypeNumericID(objectType); quickParameters.Amount = 10; quickParameters.DisablePaging = true; quickParameters.GeoLat = float.Parse(latitude); quickParameters.GeoLong = float.Parse(longitude); quickParameters.DistanceKm = 0.001f; quickParameters.ShowState = ObjectShowState.Published; quickParameters.QuerySourceType = QuerySourceType.Page; var dataObjects = DataObjects.LoadByReflection(quickParameters); foreach (var dataObject in dataObjects) { XsltArgumentList argumentList = new XsltArgumentList(); argumentList.AddParam("SiteUrl", string.Empty, SiteConfig.SiteURL); argumentList.AddParam("MediaUrl", string.Empty, SiteConfig.MediaDomainName); argumentList.AddParam("DetailLink", string.Empty, Common.Helper.GetDetailLink(dataObject.ObjectType, dataObject.ObjectID.ToString())); sb.Append(dataObject.GetOutput("Geo", SiteConfig.SiteURL + ConfigurationManager.AppSettings["XsltTemplateURLS"], argumentList)); } } if (sb.Length > 0) { return new { ObjectId = objectId, Content = sb.ToString() } } ; else { return new { ObjectId = objectId, Content = "Loading error" } }; } }
public void InitializeFromQueryString() { if (!objectType.HasValue) { objectType = !String.IsNullOrEmpty(Request.QueryString["T"]) ? Helper.GetObjectType(Request.QueryString["T"]).NumericId : Helper.GetObjectType("Picture").NumericId; } if (string.IsNullOrEmpty(communityIds)) { communityIds = Request.QueryString["C"] ?? string.Empty; } if (string.IsNullOrEmpty(searchWord)) { searchWord = Request.QueryString["W"] ?? string.Empty; } if (!showMyContentOnly.HasValue) { showMyContentOnly = (!string.IsNullOrEmpty(Request.QueryString["I"]) && Request.QueryString["I"] == "true") ? true : false; } if (string.IsNullOrEmpty(tagList)) { tagList = QuickParameters.GetDelimitedTagIds(Request.QueryString["TGL1"], ','); } }
protected void Page_Load(object sender, EventArgs e) { pager.PageSize = pageSize; quickParameters = new QuickParameters(); quickParameters.SortBy = QuickSort.StartDate; quickParameters.Direction = QuickSortDirection.Desc; quickParameters.FromNameValueCollection(Request.QueryString); quickParameters.PageSize = pageSize; quickParameters.Udc = UserDataContext.GetUserDataContext(); quickParameters.ShowState = ObjectShowState.Published; currentPage = quickParameters.PageNumber; LitTitle.Text = Helper.GetObjectName(quickParameters.ObjectType, false); if (Request.IsAuthenticated) { lnkCreate.Visible = true; lnkCreate.NavigateUrl = "/M/Admin/EditLocation.aspx"; lnkCreate.ID = null; } Reload(); }
private IRepeater CreateControl(QuickParameters paras, bool showPagerTop, bool showPagerBottom, string repeater, string template, bool manageSiblings, bool renderHtml) { Control ctrl = LoadControl("~/UserControls/Repeaters/" + repeater); IRepeater overview = ctrl as IRepeater; if (overview != null) { overview.QuickParameters = paras; overview.OutputTemplate = template; overview.TopPagerVisible = showPagerTop; overview.BottomPagerVisible = showPagerBottom; overview.RenderHtml = renderHtml; } ISettings settings = ctrl as ISettings; if (settings != null) { if (settings.Settings == null) { settings.Settings = new System.Collections.Generic.Dictionary <string, object>(); } if (!settings.Settings.ContainsKey("ParentPageType")) { settings.Settings.Add("ParentPageType", (int)_Host.ParentPageType); } if (manageSiblings) { settings.Settings.Add("SelectCurrentPage", manageSiblings); } } return(overview); }
public override bool ShowObject(string settingsXml) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(settingsXml); int dataSource = 1; bool saveObjectType = false; bool manageSiblings = false; string objectType = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ObjectType", "0"); string userId = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "UserId", string.Empty); string communitId = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "CommunityId", string.Empty); string parentOID = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ParentOID", string.Empty); int pageSize = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "MaxNumber", 5); QuickSort sortBy = (QuickSort)XmlHelper.GetElementValue(xmlDocument.DocumentElement, "SortBy", (int)QuickSort.StartDate); bool showPagerTop = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ShowPagerTop", true); bool showPagerBottom = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ShowPagerBottom", true); int featured = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Featured", 0); bool renderHtml = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "RenderHtml", false); bool byUrl = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ByUrl", true); if (objectType == "0") { if (string.IsNullOrEmpty(Request.QueryString["OT"])) { return(false); } else { objectType = Request.QueryString["OT"]; } } else { saveObjectType = true; } string template = "SmallOutputObject.ascx"; string repeater = "DataObjectLists.ascx"; if (WidgetHost.OutputTemplate != null) { if (!string.IsNullOrEmpty(WidgetHost.OutputTemplate.OutputTemplateControl)) { template = WidgetHost.OutputTemplate.OutputTemplateControl; } if (!string.IsNullOrEmpty(WidgetHost.OutputTemplate.RepeaterControl)) { repeater = WidgetHost.OutputTemplate.RepeaterControl; } } QuickParameters paras = new QuickParameters(); if (XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Anonymous", false)) { paras.Udc = UserDataContext.GetUserDataContext(Constants.ANONYMOUS_USERNAME); } else { paras.Udc = UserDataContext.GetUserDataContext(); } paras.ObjectType = Helper.GetObjectTypeNumericID(objectType); if (featured > 0) { paras.Featured = featured; } if (dataSource != 4) { paras.Tags1 = QuickParameters.GetDelimitedTagIds(XmlHelper.GetElementValue(xmlDocument.DocumentElement, "TagList1", string.Empty), Constants.TAG_DELIMITER); paras.Tags2 = QuickParameters.GetDelimitedTagIds(XmlHelper.GetElementValue(xmlDocument.DocumentElement, "TagList2", string.Empty), Constants.TAG_DELIMITER); paras.Tags3 = QuickParameters.GetDelimitedTagIds(XmlHelper.GetElementValue(xmlDocument.DocumentElement, "TagList3", string.Empty), Constants.TAG_DELIMITER); } if (dataSource == 0) { DataObject profil = DataObject.Load <DataObject>(this.WidgetHost.ParentCommunityID); paras.UserID = profil.UserID; byUrl = false; } else if (!string.IsNullOrEmpty(userId)) { paras.UserID = userId.ToGuid(); } else if (dataSource == 2) { paras.Communities = communitId.Replace(",", "|"); } else if (dataSource == 3) { paras.CommunityID = this.WidgetHost.ParentCommunityID; } else if (dataSource == 4) { DataObject detail = DataObject.Load <DataObject>(Request.QueryString["OID"].ToGuid()); paras.CommunityID = detail.CommunityID; //paras.ExcludeObjectIds = detail.ObjectID.ToString(); byUrl = false; manageSiblings = true; } else if (byUrl && WidgetHost.ParentPageType == PageType.Detail) { parentOID = Request.QueryString["OID"]; } else if (dataSource != 1) { return(false); } xmlDocument = null; if (!showPagerTop && !showPagerBottom) { paras.Amount = pageSize; } paras.PageNumber = 1; paras.PageSize = pageSize; paras.DisablePaging = (!showPagerTop && !showPagerBottom); paras.SortBy = sortBy; if (sortBy == QuickSort.Title) { paras.Direction = QuickSortDirection.Asc; } paras.IgnoreCache = false; paras.WithCopy = false; paras.OnlyConverted = true; paras.ShowState = ObjectShowState.Published; if (byUrl) { paras.FromNameValueCollection(Request.QueryString); if (saveObjectType) { paras.ObjectType = Helper.GetObjectTypeNumericID(objectType); paras.RelationParams = new RelationParams(); // override the OID parameter if there is Relation Parent OID set in the URL (used for scenarios where a detail view shouldn't left -> Chreisgleis.tv) if (!string.IsNullOrEmpty(Request.QueryString["rpoid"])) { paras.RelationParams.ParentObjectID = Request.QueryString["rpoid"].ToGuid(); } else { paras.RelationParams.ParentObjectID = paras.ObjectID; } paras.ObjectID = null; paras.CommunityID = null; } } if (!string.IsNullOrEmpty(parentOID)) { paras.RelationParams = new RelationParams(); paras.RelationParams.ParentObjectID = parentOID.ToGuid();; paras.ObjectID = null; paras.CommunityID = null; } IRepeater overview = CreateControl(paras, showPagerTop, showPagerBottom, repeater, template, manageSiblings, renderHtml); if (overview != null) { this.Ph.Controls.Add((Control)overview); return(overview.HasContent); } return(false); }
public override string GetOrderBySQL(QuickParameters qParas, SqlParameterCollection parameters) { return(Data.DataObjectProduct.GetOrderBySQL()); }
public override string GetFullTextWhereSQL(QuickParameters qParas, SqlParameterCollection parameters) { return(Data.DataObjectProduct.GetFullTextWhereSQL(qParas)); }
public override bool ShowObject(string settingsXml) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(settingsXml); int dataSource = 1; bool saveObjectType = false; bool manageSiblings = false; bool byUrl = true; if (WidgetHost.ParentPageType == PageType.None) { if (WidgetHost.ParentObjectType == 1) { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 3); } else if (WidgetHost.ParentObjectType == 19) { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 0); } byUrl = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ByUrl", false); } else if (WidgetHost.ParentPageType == PageType.Overview || WidgetHost.ParentPageType == PageType.Homepage) { if (WidgetHost.ParentObjectType == 1) { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 3); } else if (WidgetHost.ParentObjectType == 19) { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 0); } byUrl = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ByUrl", true); } else if (WidgetHost.ParentPageType == PageType.Detail) { if (WidgetHost.ParentObjectType == 1) { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 3); } else if (WidgetHost.ParentObjectType == 19) { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 0); } else if (!string.IsNullOrEmpty(Request.QueryString["OID"])) { dataSource = 4; } byUrl = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ByUrl", true); } else { dataSource = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DataSource", 1); byUrl = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ByUrl", false); } string objectType = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ObjectType", "0"); string userId = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "UserId", string.Empty); string communitId = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "CommunityId", string.Empty); int pageSize = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "MaxNumber", 5); QuickSort sortBy = (QuickSort)XmlHelper.GetElementValue(xmlDocument.DocumentElement, "SortBy", (int)QuickSort.StartDate); QuickSortDirection sortDirection = (QuickSortDirection)XmlHelper.GetElementValue(xmlDocument.DocumentElement, "SortDirection", (int)QuickSortDirection.Desc); bool showPagerTop = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ShowPagerTop", true); bool showPagerBottom = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "ShowPagerBottom", true); int featured = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Featured", 0); DateConstraint dateConstraint = (DateConstraint)Enum.Parse(typeof(DateConstraint), XmlHelper.GetElementValue(xmlDocument.DocumentElement, "DateConstraint", "None")); bool renderHtml = XmlHelper.GetElementValue(xmlDocument.DocumentElement, "RenderHtml", false); if (objectType == "0") { if (string.IsNullOrEmpty(Request.QueryString["OT"])) { return(false); } else { objectType = Request.QueryString["OT"]; } } else { saveObjectType = true; } string template = "SmallOutputObject.ascx"; string repeater = "DataObjectLists.ascx"; if (WidgetHost.OutputTemplate != null) { if (!string.IsNullOrEmpty(WidgetHost.OutputTemplate.OutputTemplateControl)) { template = WidgetHost.OutputTemplate.OutputTemplateControl; } if (!string.IsNullOrEmpty(WidgetHost.OutputTemplate.RepeaterControl)) { repeater = WidgetHost.OutputTemplate.RepeaterControl; } } QuickParameters paras = new QuickParameters(); if (WidgetHost.ParentObjectType == 1) // Community { paras.QuerySourceType = QuerySourceType.Community; } else if (WidgetHost.ParentObjectType == 19) // Profile { paras.QuerySourceType = QuerySourceType.Profile; } else if (WidgetHost.ParentObjectType == 20) // Page { paras.QuerySourceType = QuerySourceType.Page; } else { paras.QuerySourceType = QuerySourceType.MyContent; } if (XmlHelper.GetElementValue(xmlDocument.DocumentElement, "Anonymous", false)) { paras.Udc = UserDataContext.GetUserDataContext(Constants.ANONYMOUS_USERNAME); } else { paras.Udc = UserDataContext.GetUserDataContext(); } paras.ObjectType = Helper.GetObjectTypeNumericID(objectType); if (featured > 0) { paras.Featured = featured; } if (dataSource != 4) { paras.Tags1 = QuickParameters.GetDelimitedTagIds(XmlHelper.GetElementValue(xmlDocument.DocumentElement, "TagList1", string.Empty), Constants.TAG_DELIMITER); paras.Tags2 = QuickParameters.GetDelimitedTagIds(XmlHelper.GetElementValue(xmlDocument.DocumentElement, "TagList2", string.Empty), Constants.TAG_DELIMITER); paras.Tags3 = QuickParameters.GetDelimitedTagIds(XmlHelper.GetElementValue(xmlDocument.DocumentElement, "TagList3", string.Empty), Constants.TAG_DELIMITER); } if (dataSource == 0) { DataObject profil = DataObject.Load <DataObject>(this.WidgetHost.ParentCommunityID); paras.UserID = profil.UserID; byUrl = false; } else if (!string.IsNullOrEmpty(userId)) { paras.UserID = userId.ToGuid(); } else if (dataSource == 2) { paras.Communities = communitId.Replace(",", "|"); } else if (dataSource == 3) { paras.CommunityID = this.WidgetHost.ParentCommunityID; } else if (dataSource == 4) { DataObject detail = DataObject.Load <DataObject>(Request.QueryString["OID"].ToGuid()); paras.CommunityID = detail.CommunityID; //paras.ExcludeObjectIds = detail.ObjectID.ToString(); byUrl = false; manageSiblings = true; } else if (dataSource != 1) { return(false); } if ((!showPagerTop && !showPagerBottom) || sortBy == QuickSort.Random) { paras.Amount = pageSize; paras.DisablePaging = true; if (sortBy == QuickSort.Random) { paras.IgnoreCache = true; } } else { paras.PageNumber = 1; paras.PageSize = pageSize; } paras.SortBy = sortBy; paras.Direction = sortDirection; paras.ShowState = ObjectShowState.Published; switch (dateConstraint) { case DateConstraint.UntilYesterday: paras.FromStartDate = SqlDateTime.MinValue.Value; paras.ToStartDate = DateTime.Today.GetEndOfDay() - new TimeSpan(1, 0, 0, 0); paras.FromEndDate = SqlDateTime.MinValue.Value; paras.ToEndDate = DateTime.Today.GetEndOfDay() - new TimeSpan(1, 0, 0, 0); paras.DateQueryMethode = QuickDateQueryMethode.BetweenStartRangeEndRange; break; case DateConstraint.UntilToday: paras.FromStartDate = SqlDateTime.MinValue.Value; paras.ToStartDate = DateTime.Today.GetEndOfDay(); paras.FromEndDate = SqlDateTime.MinValue.Value; paras.ToEndDate = DateTime.Today.GetEndOfDay(); paras.DateQueryMethode = QuickDateQueryMethode.BetweenStartRangeEndRange; break; case DateConstraint.Today: paras.FromStartDate = SqlDateTime.MinValue.Value; paras.ToStartDate = DateTime.Today.GetEndOfDay(); paras.FromEndDate = DateTime.Today.GetStartOfDay(); paras.ToEndDate = SqlDateTime.MaxValue.Value; paras.DateQueryMethode = QuickDateQueryMethode.BetweenStartRangeEndRange; break; case DateConstraint.FromToday: paras.FromStartDate = DateTime.Today.GetStartOfDay(); paras.ToStartDate = SqlDateTime.MaxValue.Value; paras.FromEndDate = DateTime.Today.GetStartOfDay(); paras.ToEndDate = SqlDateTime.MaxValue.Value; paras.DateQueryMethode = QuickDateQueryMethode.BetweenStartRangeEndRange; break; case DateConstraint.FromTomorrow: paras.FromStartDate = DateTime.Today.GetStartOfDay() + new TimeSpan(1, 0, 0, 0); paras.ToStartDate = SqlDateTime.MaxValue.Value; paras.FromEndDate = DateTime.Today.GetStartOfDay() + new TimeSpan(1, 0, 0, 0); paras.ToEndDate = SqlDateTime.MaxValue.Value; paras.DateQueryMethode = QuickDateQueryMethode.BetweenStartRangeEndRange; break; } if (byUrl) { paras.FromNameValueCollection(Request.QueryString); if (saveObjectType) { paras.ObjectType = Helper.GetObjectTypeNumericID(objectType); } } if (paras.SortBy != QuickSort.Title && paras.SortBySecond == QuickSort.NotSorted) { paras.SortBySecond = QuickSort.Title; paras.DirectionSecond = QuickSortDirection.Asc; } IRepeater overview = CreateControl(paras, showPagerTop, showPagerBottom, repeater, template, manageSiblings, renderHtml); if (overview != null) { this.Ph.Controls.Add((Control)overview); return(overview.HasContent); } return(false); }
// Interface IReloadable public void Reload() { QuickParameters quickParams = new QuickParameters { Udc = UserDataContext.GetUserDataContext(), ObjectType = Helper.GetObjectTypeNumericID("Comment"), FromInserted = createdFrom, ToInserted = createdTo, PageSize = pageSize, PageNumber = currentPage, GeneralSearch = generealSearchParam, Nickname = userName, Description = text }; if (sortAttr == "UserName" && sortDir == "Asc") { quickParams.SortBy = QuickSort.Nickname; quickParams.Direction = QuickSortDirection.Asc; } else if (sortAttr == "UserName" && sortDir == "Desc") { quickParams.SortBy = QuickSort.Nickname; quickParams.Direction = QuickSortDirection.Desc; } else if (sortAttr == "DateSent" && sortDir == "Asc") { quickParams.SortBy = QuickSort.InsertedDate; quickParams.Direction = QuickSortDirection.Asc; } else if (sortAttr == "DateSent" && sortDir == "Desc") { quickParams.SortBy = QuickSort.InsertedDate; quickParams.Direction = QuickSortDirection.Desc; } if (commentsType == CommentsType.CommentsReceived) { quickParams.CommunityID = UserProfile.Current.ProfileCommunityID; } else if (commentsType == CommentsType.CommentsPosted) { quickParams.UserID = UserProfile.Current.UserId; } DataObjectList <DataObjectComment> comments = DataObjects.Load <DataObjectComment>(quickParams); this.comments.DataSource = comments; this.comments.DataBind(); // Check if the number of messages got smaller and the page would be out of bounce int checkedPage = this.pager1.CheckPageRange(this.currentPage, numberItems); if (checkedPage != currentPage) { this.currentPage = checkedPage; this.PBPageNum.Value = "" + checkedPage; quickParams.PageNumber = currentPage; comments = DataObjects.Load <DataObjectComment>(quickParams); this.comments.DataSource = comments; this.comments.DataBind(); } numberItems = comments.ItemTotal; this.pager1.InitPager(currentPage, numberItems); this.pager2.InitPager(currentPage, numberItems); if (numberItems > 0) { this.noitem.Visible = false; } }
protected override void OnInit(EventArgs e) { base.OnInit(e); if (QuickParameters.SortBy != QuickSort.Random) { Control ctrlPagTop = LoadControl("/UserControls/Pager.ascx"); ctrlPagTop.Visible = topPagerVisible; pagerTop = ctrlPagTop as IPager; pagerTop.BrowsableControl = this; pagerTop.PageSize = QuickParameters.PageSize; pagerTop.CustomText = TopPagerCustomText; pagerTop.PagerBreak = pagerBreak; pagerTop.RenderHref = RenderHtml; pagerTop.ItemNameSingular = string.IsNullOrEmpty(ItemNameSingular) ? Helper.GetObjectName(QuickParameters.ObjectType, true) : ItemNameSingular; pagerTop.ItemNamePlural = string.IsNullOrEmpty(ItemNamePlural) ? Helper.GetObjectName(QuickParameters.ObjectType, false) : ItemNamePlural; PhPagTop.Controls.Add(ctrlPagTop); Control ctrlPagBot = LoadControl("/UserControls/Pager.ascx"); ctrlPagBot.Visible = bottomPagerVisible; pagerBottom = ctrlPagBot as IPager; pagerBottom.CustomText = BottomPagerCustomText; pagerBottom.BrowsableControl = this; pagerBottom.PageSize = QuickParameters.PageSize; pagerBottom.PagerBreak = pagerBreak; pagerBottom.RenderHref = RenderHtml; pagerBottom.ItemNameSingular = string.IsNullOrEmpty(ItemNameSingular) ? Helper.GetObjectName(QuickParameters.ObjectType, true) : ItemNameSingular; pagerBottom.ItemNamePlural = string.IsNullOrEmpty(ItemNamePlural) ? Helper.GetObjectName(QuickParameters.ObjectType, false) : ItemNamePlural; PhPagBot.Controls.Add(ctrlPagBot); if (Settings != null && Settings.ContainsKey("SelectCurrentPage") && !string.IsNullOrEmpty(Request.QueryString["OID"])) { if (!string.IsNullOrEmpty(Request.Form["__EVENTTARGET"]) && (Request.Form["__EVENTTARGET"].Contains(ctrlPagTop.UniqueID) || Request.Form["__EVENTTARGET"].Contains(ctrlPagBot.UniqueID))) { autoSelectCurrentPage = false; } } else { autoSelectCurrentPage = false; } } else { IReloader reloaderTop = (IReloader)LoadControl("/UserControls/Reloader.ascx"); ((Control)reloaderTop).Visible = topPagerVisible; reloaderTop.BrowsableControl = this; reloaderTop.FullReload = RenderHtml; reloaderTop.ObjectType = QuickParameters.ObjectType; PhPagTop.Controls.Add((Control)reloaderTop); IReloader reloaderBottom = (IReloader)LoadControl("/UserControls/Reloader.ascx"); ((Control)reloaderBottom).Visible = bottomPagerVisible; reloaderBottom.BrowsableControl = this; reloaderBottom.FullReload = RenderHtml; reloaderBottom.ObjectType = QuickParameters.ObjectType; PhPagBot.Controls.Add((Control)reloaderBottom); autoSelectCurrentPage = false; } RestoreState(); if ((PageType)Settings["ParentPageType"] == PageType.Overview && Settings.ContainsKey("HeadingTag") && (int)Settings["HeadingTag"] == 1) { ((IWidgetPageMaster)Page.Master).BreadCrumb.RenderOverviewPageBreadCrumbs(QuickParameters); } Reload(); SaveState(); LitParams.Text = "<span style=\"display:none;\" id=\"" + Settings["WidgetInstanceId"] + "\">" + HttpUtility.HtmlEncode(QuickParameters.ToJSON()) + "</span>"; }