Web.config multiple frames and loginurl
Posted on 2004-09-03
I have a web form created in asp.net which consists of multiple frames and I am having a problem which is slowly driving me mad. The .aspx page is designed so that the central area of the screen is the frame that has the user interface. The other frames act as a border around the outside.
I needed to have an area of the site which was secured and an unsecured area which I eventually found out could be done by using the <location> tag in the web.config file. That's all fine. My problem is that I have a login.asox page which is specified in the web.config against the loginurl as follows: loginurl="login.aspx"
When the user tries to navigate to a page in the secure area directly I want the logon page to appear, which I can get it to if I'm not using frames and it will subsequently redirect me to the page initially requested. Using my nice frameset I can't figure out how to get the login.aspx to appear in the frame called "mainframe" and then to automatically redirect me to the intially requested page, again displaying it in the "mainframe".
I feel there is bound to be a way to do this as other websites use frames and seem to do what I'm trying to achieve.
All help greatly appreciated.
Thanks in advance.