473,508 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

blank page using redirect.response

What is the difference between server.transfer(page.aspx) and
redirect.response(page.aspx)? Some of the users get a blank page if I use
redirect.response. I changed it to server.transfer because it works but what
is the difference?

Thanks
Nov 18 '05 #1
3 2603
Response.Redirect adds a header to the Response indicating that the browser
should request the URL supplied by the Response. Some very few browsers may
not support this or have it turned off. Server.Transfer transfers control of
the program flow to another URL on the server side, without asking the
browser for a second request.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Grant" <no****@nospam.com> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
What is the difference between server.transfer(page.aspx) and
redirect.response(page.aspx)? Some of the users get a blank page if I use
redirect.response. I changed it to server.transfer because it works but what is the difference?

Thanks

Nov 18 '05 #2
So I would better off use server.transfer? It seems to work better but I do
not want to create problems for the users.

Thanks

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...
Response.Redirect adds a header to the Response indicating that the browser should request the URL supplied by the Response. Some very few browsers may not support this or have it turned off. Server.Transfer transfers control of the program flow to another URL on the server side, without asking the
browser for a second request.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Grant" <no****@nospam.com> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
What is the difference between server.transfer(page.aspx) and
redirect.response(page.aspx)? Some of the users get a blank page if I use redirect.response. I changed it to server.transfer because it works but

what
is the difference?

Thanks


Nov 18 '05 #3
> So I would better off use server.transfer? It seems to work better but I
do

I can't answer that question. Obviously, both are used in different
situations, or there wouldn't be 2 methods.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Grant" <no****@nospam.com> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...
So I would better off use server.transfer? It seems to work better but I do not want to create problems for the users.

Thanks

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...
Response.Redirect adds a header to the Response indicating that the browser
should request the URL supplied by the Response. Some very few browsers

may
not support this or have it turned off. Server.Transfer transfers control of
the program flow to another URL on the server side, without asking the
browser for a second request.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Grant" <no****@nospam.com> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
What is the difference between server.transfer(page.aspx) and
redirect.response(page.aspx)? Some of the users get a blank page if I use redirect.response. I changed it to server.transfer because it works

but what
is the difference?

Thanks



Nov 18 '05 #4

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

Similar topics

2
4327
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
1
1261
by: Yuri | last post by:
Hello, friends! I try to redirect to .pdf file and recieve a blank page instead The code looks like this: try Response.Redirect("./Exported/" & Session("User_Id") & "/" & FileName, False)...
1
8222
by: Paul Turley | last post by:
I have a working ASP.Net application that behaves oddly only on the new production server. The vast majority of code runs behind web user controls that sit on aspx pages. On my Login_Page.aspx...
6
16032
by: DotNetGruven | last post by:
I've got a page that does a search... There is an ImageButton on it that allows the user to reset the search. The Click Handler for the button clears out the Data and then redirects to the same...
6
2938
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
2
2104
by: Ollie | last post by:
I use javascript to open a child window from the browser (window.open.....) this is then registered with the system using Page.RegisterStartupScript, it display the child peffectly fine. The...
0
1269
by: Dave | last post by:
Greetings, I am using a tabstrip in a user control (ascx) in a web application (aspx) that is used to navigate between the different aspx pages. Whenever I click on one of them, the...
3
2101
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
10
12157
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
0
7223
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
7115
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
7377
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...
0
7489
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...
1
5047
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.