Preventing page load directly

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

I have a ASP.NET page Main.aspx with 4 frames. The center frame loads the
login.aspx file. The other three load gif file or html files. The Main.aspx
is the start page for my website

Now I am able to re-direct to this Main.aspx when the user tries to navigate
to any page in the website. I am not able to re-direct to Main.aspx when the
user tries to directly go to login.aspx. How do I make sure this happens. If
do it the same way as I do in other pages, the main page goes in a loop and
the login.aspx loads again and again.

Vijay
 
VJ said:
I have a ASP.NET page Main.aspx with 4 frames. The center frame loads the
login.aspx file. The other three load gif file or html files. The Main.aspx
is the start page for my website

Now I am able to re-direct to this Main.aspx when the user tries to navigate
to any page in the website. I am not able to re-direct to Main.aspx when the
user tries to directly go to login.aspx. How do I make sure this happens. If
do it the same way as I do in other pages, the main page goes in a loop and
the login.aspx loads again and again.

Vijay

Make sure you are redirecting to the TOP window (target type). If you
redirect into a frame it will just open more frames in that frame.

You also might look at using Web User Controls and possibly IFrames instead
of the other frames. Depends on the site though.

Rocky Moore
www.HintsAndTips.com
 
Back
Top