V
Valeri Hristov via .NET 247
I have a problem with a ASP.NET web site. I?m using Windows2000Server SP4, .NET Framework 1.1. The problem is that sometimes(relatively seldom) when browsing the Administration Console(see below) a redirect (unwanted and unexpected) is made to thePublic Site to a random page. Often (almost in every of thecases) the redirect is to a page of the UserPart of thePublicSite with a User logged in! I?m almost sure that the Userwas browsing the site in that moment. The redirect is made notonly from one Admin page.
The site is made around a CMS. Every page has base template,which has several placeholders. In every placeholder anUserControl can be put. The user controls are the elements ofthe pages ? Body, Navigation, Message board etc. Every page hasseveral records in the database holding the position and thecontent of the UserControls.
The site is divided in two parts ? Public Site and AdministrationConsole. The admin console contains the controls necessary toconfigure the public part.
The loading of the Public pages is done by a request to thedatabase. Every page has its own unique PageId which determineswhat to put on it. For example: Page = 5 has in placeholder 1 ?TopNavigation.ascx, placeholder 2 ? BreadCrumbs.ascx,placeholder 3 ? SideNavigation.ascx, placeholder 4 ? PageBody,placeholder 5 ? empty, placeholder 6 ? news.
The PublicSite has a part for the users, which can be read bylogging into the system (Forms authentication). There some ofthe user information (name, email, password etc) can be changedand there is also access to some private areas (the Forum forexample). After authentication an object containing some userinformation is created in the Session.
The Administration Console is also a CMS, but much more staticthan the Public Site. The public site has its own public.aspx,and the Administration Console its own console.aspx, but theyare in the same application.
The site is made around a CMS. Every page has base template,which has several placeholders. In every placeholder anUserControl can be put. The user controls are the elements ofthe pages ? Body, Navigation, Message board etc. Every page hasseveral records in the database holding the position and thecontent of the UserControls.
The site is divided in two parts ? Public Site and AdministrationConsole. The admin console contains the controls necessary toconfigure the public part.
The loading of the Public pages is done by a request to thedatabase. Every page has its own unique PageId which determineswhat to put on it. For example: Page = 5 has in placeholder 1 ?TopNavigation.ascx, placeholder 2 ? BreadCrumbs.ascx,placeholder 3 ? SideNavigation.ascx, placeholder 4 ? PageBody,placeholder 5 ? empty, placeholder 6 ? news.
The PublicSite has a part for the users, which can be read bylogging into the system (Forms authentication). There some ofthe user information (name, email, password etc) can be changedand there is also access to some private areas (the Forum forexample). After authentication an object containing some userinformation is created in the Session.
The Administration Console is also a CMS, but much more staticthan the Public Site. The public site has its own public.aspx,and the Administration Console its own console.aspx, but theyare in the same application.