protected string BuildCategoryListUrl(ItemType type) { int parentCategoryId = -1; if (!this.VersionInfoObject.IsNew) { parentCategoryId = this.VersionInfoObject.ItemTypeId == ItemType.Category.GetId() ? this.VersionInfoObject.ItemId : Category.GetParentCategory(this.VersionInfoObject.ItemId, this.PortalId); } return Globals.NavigateURL( this.TabId, string.Empty, "ctl=" + Utility.AdminContainer, "mid=" + this.ModuleId.ToString(CultureInfo.InvariantCulture), "adminType=" + type.Name + "list", "categoryId=" + parentCategoryId.ToString(CultureInfo.InvariantCulture)); }