Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2006, 01:44 PM
Registered User
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Redirection

Hello

I want to automatically redirect browsers who open my default.aspx page (in asp.net 2) to the sister web site (which obviously has a different URL).

I've tried server.transfer (but this only seems to work with pages within the current site) and META HTTP-EQUIV="refresh" , which simply doesn't seem to work!

Does anyone have an idea how to accomplish this?

Andy W
 
Old May 29th, 2006, 01:52 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you try Response.Redirect("http://www.somesite.com/SomePage.aspx") ??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old May 29th, 2006, 05:23 PM
Registered User
 
Join Date: May 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

No, I hadn't tried that, but I have now and - Lo and Behold - it works perfectly.

I should have known the 'font of all knowledge' would save me yet again! - although I suppose I could have saved everyone's time by simply browsing the object's properties (System.Web.UI.Page)!

Another lesson learned!

Thanks again,

Andy





Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Redirection santhosh.irtt Apache Tomcat 1 July 1st, 2006 08:07 PM
Download and Redirection wolverine4277 PHP How-To 5 December 23rd, 2004 05:32 PM
Redirection in webservice suparba .NET Web Services 3 October 27th, 2004 01:15 PM
automatic 'redirection' stu9820 Flash (all versions) 4 September 20th, 2004 07:29 AM
Redirection a5xo3z1 Beginning PHP 4 June 19th, 2003 02:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.