473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using Server.transfermethod

Hello

I'm using server.transfer() to navigate between pages, and I don't
understand why the URL changes while navigating.

My start page is default.aspx and from a button I want to navigate to
frmAdmin.aspx

so in the onClick event I have the following code
Server.Transfer("frmAdmin.aspx", true)

Which transfer me to the required page, so far so good, browser still
displays the URL .../default.aspx

Now I want to navigate back to the default.aspx
then I try to use Server.Transfer("Default.aspx", false)

Now the browser displays the URL .../frmAdmin.aspx, which is exactlly what I
try to avoid and what I thought server.transfer was meant to do.

Am I completlly wrong here?

cheers
Henry


Jun 15 '06 #1
1 1071
I have never completely understood the second parameter of the
Server.Transfer method, but what happens if you use true the second time?
The few times that I do use the Server.Transfer method (which is only to
automatically display the login page when they are not already logged in), I
use the overload that is just the first parameter. It probably would be good
for me to understand the second parameter better, but until I do, I'm not
going to try to use it. But I would also suggest that you read some of the
articles on Server.Transfer vs. Response.Redirect, Server.Transfer is rarely
used for all navigation.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Henry" <no*@il.com> wrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
Hello

I'm using server.transfer() to navigate between pages, and I don't
understand why the URL changes while navigating.

My start page is default.aspx and from a button I want to navigate to
frmAdmin.aspx

so in the onClick event I have the following code
Server.Transfer("frmAdmin.aspx", true)

Which transfer me to the required page, so far so good, browser still
displays the URL .../default.aspx

Now I want to navigate back to the default.aspx
then I try to use Server.Transfer("Default.aspx", false)

Now the browser displays the URL .../frmAdmin.aspx, which is exactlly what
I try to avoid and what I thought server.transfer was meant to do.

Am I completlly wrong here?

cheers
Henry


Jun 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE...
0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
0
by: Metal2You | last post by:
I'm working on an ASP.NET 2.0 application in Visual Studio 2005 that accesses a Sybase database back end. We're using Sybase SQL Anywhere 9.0.2.3228. I have installed and registered the Sybase...
0
by: Henry | last post by:
Hello I'm using server.transfer() to navigate between pages, and I don't understand why the URL changes while navigating. My start page is default.aspx and from a button I want to navigate to...
5
by: Mukesh | last post by:
Hi i want to use AJAX.net in my Existing Application I have already installed the ajax .net ..net 3.0 and using VS 2005 in the old application i have added a new web form then script manager...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
8
by: =?Utf-8?B?Q2hyaXMgSGFsY3Jvdw==?= | last post by:
Hi there I've successfully added some .NET validation controls to a page (using <asp:RequiredFieldValidator ...), however when I try to set the 'display' property to 'dynamic', my page then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.