Child Page in an iframe

Discussion in 'ASP.NET / ASP.NET Core' started by Himself, Dec 5, 2008.

  1. My site has a page with an iframe. When the page loads, it opens a default HTML page inside the iframe. Then, users can choose any number of other (child) pages to be loaded into the iframe. I would prefer that users not be able to load any of the child pages directly. That is:

    1. If a user does attempt to load a child page, an onload event detects this and, instead loads the parent, sending a query string to the parent.

    2. The parent always loads the default child page into the iframe unless it determines that the parent was sent a query string in which case it loads the child specified.

    I have found some admittedly kludgy ways to accomplish this, but I'm hoping that someone with more experience can show me a more elegant and simple way to accomplish this with ASP.NET, VB or whatever is necessary.

    Thanks.
     

Share This Page