/// <summary> /// Initializes the specified handler as a page. This method is called right after the handler is created and can be used to add controls to the Page. /// </summary> /// <param name="handler">The handler.</param> /// <exception cref="System.ArgumentNullException">handler</exception> public void Initialize(IHttpHandler handler) { if (handler == null) throw new ArgumentNullException("handler"); Page page = handler.GetPageHandler(); if (page != null) { this.Initialize(page); } }
/// <summary> /// Initializes the specified handler as a page. This method is called right after the handler is created and can be used to add controls to the Page. /// </summary> /// <param name="handler">The handler.</param> /// <exception cref="System.ArgumentNullException">handler</exception> public void Initialize(IHttpHandler handler) { if (handler == null) { throw new ArgumentNullException("handler"); } Page page = handler.GetPageHandler(); if (page != null) { this.Initialize(page); } }
private static Page GetTopMostPageFromHandler(IHttpHandler httpHandler) { var page = httpHandler.GetPageHandler(); if (page != null) { var topMostPage = page; while (topMostPage.PreviousPage != null) { topMostPage = topMostPage.PreviousPage; } return(topMostPage); } return(null); }
private static Page GetTopMostPageFromHandler(IHttpHandler httpHandler) { var page = httpHandler.GetPageHandler(); if (page != null) { var topMostPage = page; while (topMostPage.PreviousPage != null) { topMostPage = topMostPage.PreviousPage; } return topMostPage; } return null; }