473,549 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the difference?

Hi,

what is the difference between
Response.Redire ct("Stop.aspx") ;
and
Server.Transfer ("Stop.aspx" );
?

--
Best regards,
Odwrotnie.
Aug 1 '06 #1
9 1351
"odwrotnie" <kr*****@gazeta .plwrote in message
news:op.tdlqebm vdvqlmf@odwrotn ie...
what is the difference between
Response.Redire ct("Stop.aspx") ;
and
Server.Transfer ("Stop.aspx" );
1) Launch your Internet browser (IE, FireFox, Netscape, Opera etc)

2) Navigate to http://www.google.com

3) Enter the text below in the box:

"Response.Redir ect" "Server.Transfe r" difference

4) Hit the button
Aug 1 '06 #2
Classic. :-)
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mark Rae" wrote:
"odwrotnie" <kr*****@gazeta .plwrote in message
news:op.tdlqebm vdvqlmf@odwrotn ie...
what is the difference between
Response.Redire ct("Stop.aspx") ;
and
Server.Transfer ("Stop.aspx" );

1) Launch your Internet browser (IE, FireFox, Netscape, Opera etc)

2) Navigate to http://www.google.com

3) Enter the text below in the box:

"Response.Redir ect" "Server.Transfe r" difference

4) Hit the button
Aug 1 '06 #3
:)
Easy
Patrick

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:3F******** *************** ***********@mic rosoft.com...
Classic. :-)
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mark Rae" wrote:
>"odwrotnie" <kr*****@gazeta .plwrote in message
news:op.tdlqeb mvdvqlmf@odwrot nie...
what is the difference between
Response.Redire ct("Stop.aspx") ;
and
Server.Transfer ("Stop.aspx" );

1) Launch your Internet browser (IE, FireFox, Netscape, Opera etc)

2) Navigate to http://www.google.com

3) Enter the text below in the box:

"Response.Redir ect" "Server.Transfe r" difference

4) Hit the button

Aug 1 '06 #4
Response.Redire ct sends to the client with a META redirect and the client
requests the next page. Server. Transfer is solely on the server side.

Benefit of Reponse.Redirec t: User can bookmark the redirected page

Benefit of server.Transfer : faster, as there is no trip to the client

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"odwrotnie" <kr*****@gazeta .plwrote in message
news:op.tdlqebm vdvqlmf@odwrotn ie...
Hi,

what is the difference between
Response.Redire ct("Stop.aspx") ;
and
Server.Transfer ("Stop.aspx" );
?

--
Best regards,
Odwrotnie.

Aug 1 '06 #5
Proving, I guess, that asking questions in this group is stupid? Or, perhaps
the questions you think are stupid do not deserve answering until the day
google dies? :-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:eG******** *****@TK2MSFTNG P03.phx.gbl...
"odwrotnie" <kr*****@gazeta .plwrote in message
news:op.tdlqebm vdvqlmf@odwrotn ie...
>what is the difference between
Response.Redir ect("Stop.aspx" );
and
Server.Transfe r("Stop.aspx" );

1) Launch your Internet browser (IE, FireFox, Netscape, Opera etc)

2) Navigate to http://www.google.com

3) Enter the text below in the box:

"Response.Redir ect" "Server.Transfe r" difference

4) Hit the button

Aug 1 '06 #6
"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:eb******** ******@TK2MSFTN GP03.phx.gbl...
Proving, I guess, that asking questions in this group is stupid? Or,
perhaps the questions you think are stupid do not deserve answering until
the day google dies? :-)
Nope - merely trying to encourage people not to quite so lazy...

If the OP had done a simple Google search, they'd have had their answer
immediately rather than having to wait nearly two hours for you to tell
them...
Aug 1 '06 #7
On Tue, 01 Aug 2006 13:20:39 +0200, Mark Rae <ma**@markNOSPA Mrae.com>
wrote:
Navigate to http://www.google.com
I just wanted to have a discussion here!
It is strange for me why Profile.Value can pass values only with Transfer
:|.

--
Best regards,
Odwrotnie.
Aug 1 '06 #8
On Tue, 01 Aug 2006 14:56:42 +0200, Cowboy (Gregory A. Beamer)
<No************ @comcast.netNoS pamMwrote:
Response.Redire ct sends to the client with a META redirect and the client
requests the next page. Server. Transfer is solely on the server side.
So how this transfer works? Is it have something in common with AJAX? And
why does the address stays unchanged with transfer?
Benefit of server.Transfer : faster, as there is no trip to the client
If there is no trip to the client, how does it works that the page is
displayed?

--
Best regards,
Odwrotnie.
Aug 1 '06 #9
"odwrotnie" <kr*****@gazeta .plwrote in message
news:op.tdlzejl zdvqlmf@odwrotn ie...
On Tue, 01 Aug 2006 14:56:42 +0200, Cowboy (Gregory A. Beamer)
<No************ @comcast.netNoS pamMwrote:
>Response.Redir ect sends to the client with a META redirect and the client
requests the next page. Server. Transfer is solely on the server side.

So how this transfer works? Is it have something in common with AJAX? And
why does the address stays unchanged with transfer?
>Benefit of server.Transfer : faster, as there is no trip to the client

If there is no trip to the client, how does it works that the page is
displayed?
The asp.net model is based on the page controller pattern. ASP.Net provides
a page controller that gets the request, finds and executes the page, and
returns the HTML stream. Server.Transfer changes that flow.

So instead of this:
Controller gets request
Controller finds requested page
Controller loads and executes page
Controller wraps output of page in HTTP protocol and ships it back

You get this
Controller gets request
Controller finds requested page
Controller loads and executes page
Page tells controller to find a new page
Controller finds transferred page
Controller loads and executes page
Controller wraps output of page in HTTP protocol and ships it back

All this happens server side. The client is still waiting on their original
request and has no idea that it has occurred. It is quite normal for there
to be pages on the server that are ONLY accessible by server.transfer , where
the client gets the output but never sees the URL.

No, this has nothing to do with the Ajax model, although this mechanism can
be used for any web interaction, including Ajax, limited only by the
creativity of the developers and the requirements of the app.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Aug 1 '06 #10

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

Similar topics

125
14579
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
1
8265
by: mike | last post by:
best regards: What is the difference between DOM Level 1 and DOM Level 2. Thank you. May god be with you.
5
20588
by: radnus2004 | last post by:
Hi all, I am not clear what is the difference between signed and unsigned in C. Many say, unsigned means only +ve values and 0. Can I use unsigned int i = -3? What happens internally ? What conversion happens? Also on 32 and 64bit machines what happens? Can anybody explain?
10
15620
by: tinesan | last post by:
Hello fellow C programmers, I'm just learning to program with C, and I'm wondering what the difference between signed and unsigned char is. To me there seems to be no difference, and the standard doesn't even care what a normal char is (because signed and unsigned have equal behavior). For example if someone does this: unsigned char a...
13
5014
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
12
17364
by: Nathan Sokalski | last post by:
What is the difference between the Page_Init and Page_Load events? When I was debugging my code, they both seemed to get triggered on every postback. I am assuming that there is some difference, and I would like to know what it is so that I can take advantage of it in my code. Thanks. -- Nathan Sokalski njsokalski@hotmail.com...
3
3007
by: Anoj Kumar | last post by:
Hi All , can anyone tell me what is the difference between the following declaration and how it affects application performance. 1. Dim cn As ADODB.Connection Set cn = New ADODB.Connection
6
11238
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. What is the difference between a Field and a Property? Here is the context. In the VS.NET 2002 documentation, in the "String Members" section, we have the following...
5
5837
by: kai | last post by:
Hi, In ASP.NET , what is the difference between OnClick and Click events for a button? Because we have button click event, it can trigger events, why we still need OnClick? Please help. Thanks kai
49
2400
by: Zach | last post by:
After having taken a looong break from VB (last used 6.0), I started getting back into programming again, this time with VS 2005. I began reading up on VB.NET from various sources (books, internet, etc.) and found out about the CLR and how all of the .NET languages access it, the major difference being the syntax and structure of the...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7956
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.