/// <summary> /// Render this Tool part to the output parameter /// specified. /// </summary> /// <param name="output"> /// The HTML writer to write out to /// </param> protected override void RenderToolPart(HtmlTextWriter output) { // Establish a reference to the Web Part. SharePointForumWebPart wp1 = (SharePointForumWebPart)this.ParentToolPane.SelectedWebPart; output.Write("Enter your custom text: "); output.Write("<input name= '" + inputname); output.Write("' type='text' value='" + SPEncode.HtmlEncode(ForumApplication.Instance.Title) + "'> <br>"); }
/// <summary> /// Called by the tool pane to apply property changes to /// the selected Web Part. /// </summary> public override void ApplyChanges() { SharePointForumWebPart wp1 = (SharePointForumWebPart)this.ParentToolPane.SelectedWebPart; ForumApplication.Instance.Title = Page.Request.Form[inputname]; }