Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 June 21st, 2003, 10:04 AM
Authorized User
Join Date: Jun 2003
Location: , , .
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Default Server.Transfer Not Working

I don't see why this isn't working but
no transfer occurs. Thanks in advance

<%@ Page Language="VB" Debug="true" %>
<%@ Import Namespace="System %>
<%@ Import Namespace="System.Web %>

<script runat="server">
Sub Page_Load()

message.Text="I didn't transfer again."
End Sub
<title>Untitled Document</title>



<asp:label id="message" runat="server" />
something wrong
Old June 21st, 2003, 10:24 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

The Transfer doesn't work, because you're trying to Transfer to another server. Server.Transfer expects another ASPX page on the same server (that is why the Transfer method is part of the Server object).

Check out http://msdn.microsoft.com/library/de...sfertopic2.asp for more details.

To overcome this problem, use Response.Redirect. As the Redirect method tells the browser to request a new page, you can use it to redirect to other servers as well.



Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crosspagepostback and Server.Transfer preetakrish ASP.NET 1.x and 2.0 Application Design 1 March 17th, 2008 06:29 AM
Server.Transfer Sheraz Khan ASP.NET 2.0 Basics 1 July 28th, 2007 05:17 AM
transfer data to xls with ADO not working nebbish Access 4 March 1st, 2006 09:55 PM
Transfer Data from one server to another server Jane SQL Server 2000 2 February 28th, 2005 03:15 AM
ViewState with Server.Transfer Aaron Edwards Classic ASP Basics 3 January 2nd, 2005 07:52 PM

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