private void OnAcceptClick(object sender, EventArgs e) { EventRoot eventRoot = EventRoot.Current; Item eventItem = eventRoot.CreateEvent(this._textBox.Text); string linkForTaskPage = TaskPageUtils.GetLinkForTaskPage(eventItem); this.Page.Response.Redirect(linkForTaskPage, false); }
private void BindData(object sender, EventArgs e) { var hyperLink = (HyperLink)sender; var modelContainer = (ModelContainer)hyperLink.NamingContainer; hyperLink.Text = modelContainer.Model.ToString(); var eventListData = modelContainer.DataItem as EventListData; Item contentItem = ItemUtil.GetContentItem(Guid.Parse(eventListData.Id)); hyperLink.NavigateUrl = TaskPageUtils.GetLinkForTaskPage(contentItem); }