public void Page_Load(object sender, EventArgs e) { picturesView.OnGetDataSource += new EventHandler(picturesView_OnGetDataSource); if (!IsPostBack) { mPictureId = RequestId; GetPictureData(sender, e); GetPicturesData(sender, e); TransitAccountStoryPicture p = AccountStoryPicture; TransitAccountStory s = AccountStory; SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Stories", Request, "AccountStoriesView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(s.Name, Request, string.Format("AccountStoryView.aspx?id={0}", s.Id))); sitemapdata.Add(new SiteMapDataAttributeNode(string.Format("Pictures > {0}", p.Name), Request.Url)); StackSiteMap(sitemapdata); } }
protected void Page_Load(object sender, EventArgs e) { this.addFile.Attributes["onclick"] = this.files.GetAddFileScriptReference() + "return false;"; gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Pictures", Request.Url)); StackSiteMap(sitemapdata); } SetDefaultButton(save); }
public void Page_Load(object sender, EventArgs e) { if (RequestAccountId == 0) { RedirectToLogin(); return; } if (!IsPostBack) { linkRelRss.NavigateUrl = string.Format("AccountFriendAuditEntriesRss.aspx?id={0}", AccountId); friendsView.AccountId = RequestAccountId; SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Friends Activity", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); LocationSelector.CountryChanged += new EventHandler(LocationSelector_CountryChanged); LocationSelector.StateChanged += new EventHandler(LocationSelector_StateChanged); LocationSelector.CityChanged += new EventHandler(LocationSelector_CityChanged); neighborhoods.OnChange += new EventHandler(neighborhoods_OnChange); if (!IsPostBack) { if (SessionManager.IsLoggedIn && (Request.QueryString.Count == 0)) { LocationSelector.SelectLocation(sender, new LocationWithOptionsEventArgs(SessionManager.Account)); } else { if (LocationSelector.SelectLocation(sender, new LocationWithOptionsEventArgs(Request))) { // panelSearchInternal.Visible = true; } } GetNeighborhoodsData(sender, e); GetData(sender, e); if ((gridManage.VirtualItemCount == 0) && (Request.QueryString.Count == 0)) { LocationSelector.ClearSelection(); GetData(sender, e); } SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Places", Request, "PlacesView.aspx")); if (Request.QueryString.Count != 0) { sitemapdata.AddRange(SiteMapDataAttribute.GetLocationAttributeNodes(Request, "PlacesView.aspx", inputCountry.SelectedValue, inputState.SelectedValue, inputCity.SelectedValue, inputNeighborhood.SelectedValue, inputType.SelectedValue)); } StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { TransitAccountRssWatch f = AccountRssWatch; Title = labelTitle.Text = Renderer.Render(f.Name); linkEditRssWatch.NavigateUrl = string.Format("AccountRssWatchEdit.aspx?id={0}", f.Id); labelSince.Text = string.Format("since {0}", SessionManager.Adjust(f.Sent).ToShortDateString()); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Subscriptions", Request, "AccountRssWatchsManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(f.Name, Request.Url)); StackSiteMap(sitemapdata); GetData(sender, e); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { accountImage.Src = string.Format("AccountPictureThumbnail.aspx?id={0}", Account.PictureId); accountName.Text = string.Format("Dear {0},", Renderer.Render(Account.Name)); inputConfirm.Checked = SessionManager.IsAdministrator; inputDeleteContent.Enabled = SessionManager.IsAdministrator; inputDeleteContent.Checked = SessionManager.IsAdministrator; SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Delete Account", Request.Url)); StackSiteMap(sitemapdata); } SetDefaultButton(buttonDelete); }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("E-Mails", Request.Url)); StackSiteMap(sitemapdata); DomainClass cs = SessionManager.GetDomainClass("AccountEmail"); inputEmailAddress.MaxLength = cs["Address"].MaxLengthInChars; } SetDefaultButton(manageAdd); }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); gridManageAuthor.OnGetDataSource += new EventHandler(gridManageAuthor_OnGetDataSource); if (!IsPostBack) { gridManage_OnGetDataSource(this, null); gridManage.DataBind(); gridManageAuthor_OnGetDataSource(this, null); gridManageAuthor.DataBind(); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Blogs", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { picturesView.OnGetDataSource += new EventHandler(picturesView_OnGetDataSource); if (!IsPostBack) { mPictureId = RequestId; GetPictureData(sender, e); GetPicturesData(sender, e); TransitPlace p = Place; SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Places", Request, "PlacesView.aspx")); sitemapdata.AddRange(SiteMapDataAttribute.GetLocationAttributeNodes(Request, "PlacesView.aspx", p.Country, p.State, p.City, p.Neighborhood, p.Type)); sitemapdata.Add(new SiteMapDataAttributeNode(p.Name, Request, string.Format("PlaceView.aspx?id={0}", p.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Pictures", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Friends", Request, "AccountFriendsManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Request", Request.Url)); StackSiteMap(sitemapdata); string action = Request.QueryString["action"]; if (string.IsNullOrEmpty(action)) { throw new Exception("Missing action parameter."); } int id = RequestId; if (id == 0) { throw new Exception("Missing id parameter."); } action = action.ToLower(); switch (action) { case "accept": SessionManager.SocialService.AcceptAccountFriendRequest(SessionManager.Ticket, id, string.Empty); break; case "reject": SessionManager.SocialService.RejectAccountFriendRequest(SessionManager.Ticket, id, string.Empty); break; default: throw new Exception("Invalid action parameter."); } SessionManager.InvalidateCache <TransitAccountFriendRequest>(); ReportInfo("Request " + action + "ed."); } }
public void Page_Load() { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { TransitTagWord word = SessionManager.TagWordService.GetTagWordById( SessionManager.Ticket, RequestId); tagSubtitle.Text = string.Format("Who is talking about <b>\"{0}\"</b>?", Renderer.Render(word.Word)); this.Title = string.Format("Who is talking about \"{0}\"?", Renderer.Render(word.Word)); gridManage_OnGetDataSource(this, null); gridManage.DataBind(); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("People", Request, "AccountsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Tags", Request, "TagWordsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(word.Word, Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("System Preferences", Request, "SystemPreferencesManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Account Property Groups", Request, "SystemAccountPropertyGroupsManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(PropertyGroup.Name, Request, string.Format("SystemAccountPropertyGroupEdit.aspx?id={0}", PropertyGroupId))); DomainClass cs = SessionManager.GetDomainClass("AccountProperty"); inputName.MaxLength = cs["Name"].MaxLengthInChars; linkBack.NavigateUrl = string.Format("SystemAccountPropertyGroupEdit.aspx?id={0}", PropertyGroupId); inputTypeName.Items.Add(new ListItem("String", Type.GetType("System.String").ToString())); inputTypeName.Items.Add(new ListItem("Array", Type.GetType("System.Array").ToString())); inputTypeName.Items.Add(new ListItem("Text", Type.GetType("System.Text.StringBuilder").ToString())); inputTypeName.Items.Add(new ListItem("Integer", Type.GetType("System.Int32").ToString())); inputTypeName.Items.Add(new ListItem("Boolean", Type.GetType("System.Boolean").ToString())); // inputTypeName.Items.Add(new ListItem(Type.GetType("System.DateTime").ToString())); if (RequestId > 0) { TransitAccountProperty t = SessionManager.AccountService.GetAccountPropertyById( SessionManager.Ticket, RequestId); inputName.Text = t.Name; inputDescription.Text = t.Description; inputDefaultValue.Text = t.DefaultValue; inputPublish.Checked = t.Publish; sitemapdata.Add(new SiteMapDataAttributeNode(t.Name, Request.Url)); ListItemManager.SelectAdd(inputTypeName, t.Type); } else { sitemapdata.Add(new SiteMapDataAttributeNode("New Property", Request.Url)); } StackSiteMap(sitemapdata); } SetDefaultButton(manageAdd); }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (RequestId == 0) { throw new Exception("Missing place merge request."); } TransitPlaceChangeRequest request = SessionManager.PlaceService.GetPlaceChangeRequestById( SessionManager.Ticket, RequestId); TransitPlace place = SessionManager.PlaceService.GetPlaceById( SessionManager.Ticket, request.PlaceId); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Places", Request, "PlacesView.aspx")); sitemapdata.AddRange(SiteMapDataAttribute.GetLocationAttributeNodes(Request, "PlacesView.aspx", place.Country, place.State, place.City, place.Neighborhood, place.Type)); sitemapdata.Add(new SiteMapDataAttributeNode(place.Name, Request, string.Format("PlaceView.aspx?id={0}", place.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Merge Changes", Request.Url)); StackSiteMap(sitemapdata); Title = labelName.Text = string.Format("{0}: Merge Changes", Renderer.Render(place.Name)); linkBack.NavigateUrl = string.Format("PlaceChangeRequestsManage.aspx?id={0}", place.Id); AddListItem(place.Name, request.Name, selectName); AddListItem(place.Type, request.Type, selectType); AddListItem(place.Description, request.Description, selectDescription); AddListItem(place.Country, request.Country, selectCountry); AddListItem(place.State, request.State, selectState); AddListItem(place.City, request.City, selectCity); AddListItem(place.Neighborhood, request.Neighborhood, selectNeighborhood); AddListItem(place.Phone, request.Phone, selectPhone); AddListItem(place.Fax, request.Fax, selectFax); AddListItem(place.Street, request.Street, selectStreet); AddListItem(place.Zip, request.Zip, selectZip); AddListItem(place.CrossStreet, request.CrossStreet, selectCrossStreet); AddListItem(place.Email, request.Email, selectEmail); } SetDefaultButton(merge); }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Flags", Request, "AccountFlagsManage.aspx")); inputType.DataSource = SessionManager.AccountService.GetAccountFlagTypes( SessionManager.Ticket, null); inputType.DataBind(); string type = Request["type"]; ListItemManager.TrySelect(inputType, type); TransitAccount account = SessionManager.AccountService.GetAccountById( SessionManager.Ticket, GetId("aid")); if (account == null) { ReportWarning("Account has already been deleted."); panelMessage.Visible = false; return; } linkKeen.NavigateUrl = string.Format("AccountView.aspx?id={0}", account.Id.ToString()); linkKeen.Text = Renderer.Render(account.Name); imageKeen.ImageUrl = string.Format("AccountPictureThumbnail.aspx?id={0}&width=75&height=75", account.PictureId); inputDescription.Text = string.Format("Dear Administrator,\n\nI would like to report {0} from {1}. Please take a look at {2}.\n\nThx\n{3}", Renderer.Render(Request["type"]), Renderer.Render(account.Name), Renderer.Render(Request["url"]), Renderer.Render(SessionManager.Account.Name)); sitemapdata.Add(new SiteMapDataAttributeNode(string.Format("Report {0}", Renderer.Render(Request["type"])), Request.Url)); linkBack.NavigateUrl = ReturnUrl; StackSiteMap(sitemapdata); } SetDefaultButton(manageAdd); }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string useragent = SessionManager.GetCachedConfiguration("SnCore.Web.UserAgent", "SnCore/1.0"); TransitAccountFeedWithItems f = TransitAccountFeedWithItems.Discover(Request["url"], useragent); if (f == null) { ReportInfo(string.Format("Sorry, {0} is not a valid RSS or ATOM feed.", Renderer.Render(Request["url"]))); panelAll.Visible = false; return; } mAccountFeed = f; labelFeed.Text = Renderer.Render(f.Name); labelFeed.NavigateUrl = f.LinkUrl; labelFeedDescription.Text = Renderer.Render(f.Description); labelAccountName.Text = Renderer.Render(SessionManager.Account.Name); linkAccount.HRef = string.Format("AccountView.aspx?id={0}", SessionManager.Account.Id); imageAccount.Src = string.Format("AccountPictureThumbnail.aspx?id={0}", SessionManager.Account.PictureId); this.Title = string.Format("{0}'s {1}", Renderer.Render(SessionManager.Account.Name), Renderer.Render(f.Name)); if (f.FeedItems.Count > gridManage.PageSize) { f.FeedItems.RemoveRange(gridManage.PageSize, f.FeedItems.Count - gridManage.PageSize); } gridManage.DataSource = f.FeedItems; gridManage.DataBind(); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Blogs", Request, "AccountFeedItemsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(f.Name, Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { picturesView.OnGetDataSource += new EventHandler(picturesView_OnGetDataSource); if (!IsPostBack) { mPictureId = RequestId; GetPictureData(sender, e); GetPicturesData(sender, e); TransitAccountEvent t = AccountEvent; TransitAccountEventPicture p = AccountEventPicture; SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Events", Request, "AccountEventsView.aspx")); sitemapdata.AddRange(SiteMapDataAttribute.GetLocationAttributeNodes(Request, "AccountEventsToday.aspx", t.PlaceCountry, t.PlaceState, t.PlaceCity, t.PlaceNeighborhood, t.AccountEventType)); sitemapdata.Add(new SiteMapDataAttributeNode(t.Name, Request, string.Format("AccountEventView.aspx?id={0}", t.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Pictures", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { //labelName.Text = Renderer.Render(SessionManager.GetCachedConfiguration( // "SnCore.Name", "SnCore")); //linkAdministrator.OnClientClick = // string.Format("location.href='mailto:{0}';", // SessionManager.GetCachedConfiguration( // "SnCore.Admin.EmailAddress", "*****@*****.**")); GetData(); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("People", Request, "AccountsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Top Traffickers", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { if (!SessionManager.IsAdministrator) { ReportWarning("This page is only available to the system administrator."); return; } GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Statistics", Request, "SystemStatsHits.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Counters", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load() { this.addFile.Attributes["onclick"] = this.files.GetAddFileScriptReference() + "return false;"; gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { gridManage_OnGetDataSource(this, null); gridManage.DataBind(); selectPictureType.DataSource = SessionManager.ObjectService.GetPictureTypes( SessionManager.Ticket, null); selectPictureType.DataBind(); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("System Preferences", Request, "SystemPreferencesManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Pictures", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Syndication", Request, "AccountFeedsManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Wizard", Request.Url)); StackSiteMap(sitemapdata); inputLinkUrl.Text = Request.QueryString["url"]; if (!string.IsNullOrEmpty(inputLinkUrl.Text)) { discover_Click(sender, e); } } SetDefaultButton(linkDiscover); }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("System Preferences", Request, "SystemPreferencesManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Surveys", Request, "SystemSurveysManage.aspx")); DomainClass cs = SessionManager.GetDomainClass("Survey"); inputName.MaxLength = cs["Name"].MaxLengthInChars; if (RequestId > 0) { TransitSurvey tw = SessionManager.ObjectService.GetSurveyById( SessionManager.Ticket, RequestId); inputName.Text = Renderer.Render(tw.Name); sitemapdata.Add(new SiteMapDataAttributeNode(tw.Name, Request.Url)); } else { sitemapdata.Add(new SiteMapDataAttributeNode("New Survey", Request.Url)); } StackSiteMap(sitemapdata); } SetDefaultButton(manageAdd); if (RequestId > 0) { linkNewQuestion.NavigateUrl = string.Format("SystemSurveyQuestionEdit.aspx?sid={0}", RequestId); gridManage.DataSource = SessionManager.ObjectService.GetSurveyQuestions( SessionManager.Ticket, RequestId, null); gridManage.DataBind(); } else { panelQuestions.Visible = false; } }
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("System Preferences", Request, "SystemPreferencesManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Neighborhoods", Request, "SystemNeighborhoodsManage.aspx")); DomainClass cs = SessionManager.GetDomainClass("Neighborhood"); inputName.MaxLength = cs["Name"].MaxLengthInChars; string defaultcountry = SessionManager.GetCachedConfiguration("SnCore.Country.Default", "United States"); inputCountry.DataSource = SessionManager.GetCollection <TransitCountry, string>( defaultcountry, (ServiceQueryOptions)null, SessionManager.LocationService.GetCountriesWithDefault); inputCountry.DataBind(); if (RequestId > 0) { TransitNeighborhood tc = SessionManager.LocationService.GetNeighborhoodById( SessionManager.Ticket, RequestId); inputName.Text = tc.Name; ListItemManager.TrySelect(inputCountry, tc.Country); inputCountry_SelectedIndexChanged(sender, e); ListItemManager.TrySelect(inputState, tc.State); inputState_SelectedIndexChanged(sender, e); ListItemManager.TrySelect(inputCity, tc.City); sitemapdata.Add(new SiteMapDataAttributeNode(tc.Name, Request.Url)); } else { inputCountry_SelectedIndexChanged(sender, e); panelMerge.Visible = false; sitemapdata.Add(new SiteMapDataAttributeNode("New Neighborhood", Request.Url)); } StackSiteMap(sitemapdata); } SetDefaultButton(manageAdd); PageManager.SetDefaultButton(mergeLookup, panelMerge.Controls); }
public void Page_Load(object sender, EventArgs e) { linkNew.NavigateUrl = string.Format("AccountAttributeEdit.aspx?aid={0}", RequestId); accountLink.HRef = string.Format("AccountView.aspx?id={0}", RequestId); accountImage.Src = string.Format("AccountPictureThumbnail.aspx?id={0}", Account.PictureId); accountName.Text = Render(Account.Name); gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("People", Request, "AccountsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(Account.Name, Request, string.Format("AccountView.aspx?id={0}", Account.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Attributes", Request.Url)); GetData(sender, e); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { TransitAccount ta = SessionManager.GetInstance <TransitAccount, int>( RequestAccountId, SessionManager.AccountService.GetAccountById); labelName.Text = string.Format("{0}'s Favorite Places", Render(ta.Name)); linkAccount.Text = string.Format("» Back to {0}", Render(ta.Name)); linkAccount.NavigateUrl = string.Format("AccountView.aspx?id={0}", ta.Id); linkRelRss.NavigateUrl = string.Format("AccountPlaceFavoritesRss.aspx?id={0}", ta.Id); GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("People", Request, "AccountsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(ta.Name, Request, string.Format("AccountView.aspx?id={0}", ta.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Favorite Places", Request.Url)); StackSiteMap(sitemapdata); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string subject = HttpUtility.HtmlDecode(Request.Params["Subject"]); linkPage.NavigateUrl = linkCancel.NavigateUrl = Url; Title = inputSubject.Text = string.Format("Check out {0}", subject); if (!SessionManager.HasVerified()) { ReportWarning("You don't have any verified e-mail addresses and/or profile photos.\n" + "You must add/confirm a valid e-mail address and upload a profile photo before using this feature."); send.Enabled = false; } SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode(string.Format("Tell a Friend > {0}", subject), Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { SyndicationService.TransitAccountFeed f = AccountFeed; feedDescription.Text = (f.Description.Length > 0 ? string.Format("» {0}", Renderer.Render(f.Description)) : string.Empty); this.Title = string.Format("{0}'s {1}", Renderer.Render(f.AccountName), Renderer.Render(f.Name)); gridManage.VirtualItemCount = SessionManager.GetCount <SyndicationService.TransitAccountFeedItem, SyndicationService.ServiceQueryOptions, int>( RequestId, SessionManager.SyndicationService.GetAccountFeedItemsCount); gridManage_OnGetDataSource(sender, e); gridManage.DataBind(); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Blogs", Request, "AccountFeedItemsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(f.Name, Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { TransitPlace place = SessionManager.PlaceService.GetPlaceById( SessionManager.Ticket, RequestId); labelTitle.Text = Title = string.Format("{0}: Change Requests", Renderer.Render(place.Name)); linkBack.NavigateUrl = string.Format("PlaceView.aspx?id={0}", place.Id); GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Places", Request, "PlacesView.aspx")); sitemapdata.AddRange(SiteMapDataAttribute.GetLocationAttributeNodes(Request, "PlacesView.aspx", place.Country, place.State, place.City, place.Neighborhood, place.Type)); sitemapdata.Add(new SiteMapDataAttributeNode(place.Name, Request, string.Format("PlaceView.aspx?id={0}", place.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Change Requests", Request.Url)); StackSiteMap(sitemapdata); } }
public void Page_Load(object sender, EventArgs e) { LocationSelector.LocationChanged += new EventHandler(LocationSelector_LocationChanged); if (!IsPostBack) { SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Preferences", Request.Url)); StackSiteMap(sitemapdata); DomainClass cs = SessionManager.GetDomainClass("Account"); inputName.MaxLength = cs["Name"].MaxLengthInChars; inputCity.MaxLength = cs["City"].MaxLengthInChars; inputSignature.MaxLength = cs["Signature"].MaxLengthInChars; inputName.Text = SessionManager.Account.Name; inputBirthday.SelectedDate = SessionManager.Account.Birthday; inputBirthday.DataBind(); inputCity.Text = SessionManager.Account.City; inputTimeZone.SelectedTzIndex = SessionManager.Account.TimeZone; LocationSelector.SelectLocation(sender, new LocationEventArgs(SessionManager.Account)); LocationSelector_LocationChanged(sender, e); inputSignature.Text = SessionManager.Account.Signature; groups.AccountId = SessionManager.Account.Id; accountredirect.TargetUri = string.Format("AccountView.aspx?id={0}", SessionManager.Account.Id); // TODO: cache inputLocale.DataSource = SessionManager.GetCollection <TransitCultureInfo>( SessionManager.SystemService.GetInstalledCultures); inputLocale.DataBind(); inputLocale.Items.Insert(0, new ListItem("Web Browser Language", "0")); ListItemManager.TrySelect(inputLocale, SessionManager.Account.LCID.ToString()); } }
public void Page_Load(object sender, EventArgs e) { listPending.OnGetDataSource += new EventHandler(listPending_OnGetDataSource); if (!IsPostBack) { GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Me Me", Request, "AccountManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Groups", Request, "AccountGroupsManage.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode("Invitations", Request.Url)); StackSiteMap(sitemapdata); string action = Request["action"]; if (!string.IsNullOrEmpty(action)) { listPending_ItemCommand(sender, new DataListCommandEventArgs(null, null, new CommandEventArgs(action, GetId("rid")))); } } }
public void Page_Load(object sender, EventArgs e) { gridManage.OnGetDataSource += new EventHandler(gridManage_OnGetDataSource); if (!IsPostBack) { TransitAccountGroup ta = SessionManager.GroupService.GetAccountGroupById( SessionManager.Ticket, RequestId); labelName.Text = string.Format("{0}'s Places", Render(ta.Name)); linkAccountGroup.Text = string.Format("» Back to {0}", Render(ta.Name)); linkAccountGroup.NavigateUrl = string.Format("AccountGroupView.aspx?id={0}", ta.Id); linkRelRss.NavigateUrl = string.Format("AccountGroupPlacesRss.aspx?id={0}", ta.Id); GetData(sender, e); SiteMapDataAttribute sitemapdata = new SiteMapDataAttribute(); sitemapdata.Add(new SiteMapDataAttributeNode("Groups", Request, "AccountGroupsView.aspx")); sitemapdata.Add(new SiteMapDataAttributeNode(ta.Name, Request, string.Format("AccountGroupView.aspx?id={0}", ta.Id))); sitemapdata.Add(new SiteMapDataAttributeNode("Places", Request.Url)); StackSiteMap(sitemapdata); } }