|
|
|
start date: Wed, 15 Aug 2007 11:09:02 -0500,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
Ross Culver
|
|
2
bruce barker
|
|
3
Ross Culver
|
Not sure how to entitle this?
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
Date:Wed, 15 Aug 2007 11:09:02 -0500
Author:
|
Re: Not sure how to entitle this?
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)
Ross Culver wrote:
> 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
>
>
Date:Wed, 15 Aug 2007 09:19:52 -0700
Author:
|
Re: Not sure how to entitle this?
Sweet! Thanks, Bruce.
"bruce barker" wrote in message
news:%23nq6fg13HHA.948@TK2MSFTNGP06.phx.gbl...
> 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)
>
>
> Ross Culver wrote:
>> 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
Date:Wed, 15 Aug 2007 13:20:33 -0500
Author:
|
|
|