Not sure how to entitle this?

R

Ross Culver

I have a site where most of the time users never leave the default page.
Using an iframe, most pages are loaded into the iframe when users click
buttons via codebehind code.

After optimizing the site (unless I set the robot.txt to indicate
otherwise), the search engines are going to create links directly to these
'child' pages and when users click those links they're going to load pages
that don't have any navigation to the site itself.

Is there a way to put code in the page_load event that will check to see if
the page is being presented within an iframe, and if not, redirect the page
to the default page?

I hope this question is clear.

Thanks,

Ross
 
B

bruce barker

in client script you can check if the page is the parent and if not,
redirect to default and pass a parameter specifying the iframe src.

-- bruce (sqlwork.com)
 
R

Ross Culver

Sweet! Thanks, Bruce.


bruce barker said:
in client script you can check if the page is the parent and if not,
redirect to default and pass a parameter specifying the iframe src.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top