I am using ASP.NET 1.1 and just tried my hand at forms authentication. I want the 'logo' image, the 'Log out' button, and the Label having text as ("Hello " + User.Identity.Name") to appear on every page once the user is logged in. I don't know what's the best way to achieve this.
I created one page with just these three controls and showed this page as a frame at the top once the user has logged in. But I don't want this top frame to appear when the user is not logged in and the 'login.aspx' page should appear in the whole window then.
If a page other than the login.aspx page is requested after the logout, the control goes to the login page as desired. But the problem is since any other window (except the one having login.aspx page) contains two frames, two login.aspx pages are opened, one in each frame. How do I redirect a request to any window(which is containing two frames = two aspx pages) after logout to just one whole frame containing the login.aspx page?
or is there a better solution than using frames?
Please help. Thank you.