internal void EnsurePageCanBeRequestedDirectly(string methodName)
{
if (PreviousSectionWriters == null)
{
throw new HttpException(String.Format(CultureInfo.CurrentCulture, WebPageResources.WebPage_CannotRequestDirectly, VirtualPath, methodName));
}
}