By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 876 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

Preventing page load directly

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"VJ" <vi********@yahoo.com> wrote in message
news:uj**************@TK2MSFTNGP09.phx.gbl...
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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.