using System; using System.Data; namespace yaf { /// /// Summary description for ForumUsers. /// public class BaseControl : System.Web.UI.Control { protected override void Render(System.Web.UI.HtmlTextWriter writer) { } public yaf.pages.ForumPage ForumPage { get { System.Web.UI.Control ctl = Parent; System.Web.UI.Control thePage = this; while(ctl.GetType()!=typeof(yaf.Forum)) { thePage = ctl; ctl = ctl.Parent; } return (yaf.pages.ForumPage)thePage; } } } }