DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us