Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 29th, 2006, 01:44 PM
Registered User
 
Join Date: May 2006
Location: Milton Keynes, , United Kingdom.
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
Reply With Quote
  #2 (permalink)  
Old May 29th, 2006, 01:52 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
Reply With Quote
  #3 (permalink)  
Old May 29th, 2006, 05:23 PM
Registered User
 
Join Date: May 2006
Location: Milton Keynes, , United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:55 AM.


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