473,809 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

blank page using redirect.respon se

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

Thanks
Nov 18 '05 #1
3 2637
Response.Redire ct 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******** ******@TK2MSFTN GP12.phx.gbl...
What is the difference between server.transfer (page.aspx) and
redirect.respon se(page.aspx)? Some of the users get a blank page if I use
redirect.respon se. 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******** ******@TK2MSFTN GP10.phx.gbl...
Response.Redire ct 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******** ******@TK2MSFTN GP12.phx.gbl...
What is the difference between server.transfer (page.aspx) and
redirect.respon se(page.aspx)? Some of the users get a blank page if I use redirect.respon se. 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******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP10.phx.gbl...
Response.Redire ct 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******** ******@TK2MSFTN GP12.phx.gbl...
What is the difference between server.transfer (page.aspx) and
redirect.respon se(page.aspx)? Some of the users get a blank page if I use redirect.respon se. 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
4342
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 been searching around trying to get this to happen for one of my aspx pages and I can't get it to expire. I've put the following HTML tags in the page: <meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT"> <meta...
1
1272
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) catch e as exception end try
1
8308
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 page, user enters user name, password, etc into controls on the contained Login_Control.ascx and clicks a button that redirects them to another page (i.e. Response.Redirect("Main_Menu_Page.aspx").) Instead of redirecting, the browser window is...
6
16060
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 page with Response.Redirect("Search.Aspx", true); Sometimes the code in Page_Load within the IsPostBack part of the if statement runs and sometimes it doesn't. IN other words, sometimes IsPostBack is true and sometimes it is not!
6
2961
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 server side event happens, resulting in Page_load event. Page_Load is also happening when I navigate to the next page. That means Page_load will always happen when I navigate to the next page. Please correct me If I have totally misunderstood...
2
2124
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 problem is that all the links on the parrent (main) window now display a blank page when clicked on, they work perfectly fine before the popup window is displayed. Anyone got any ideas why? Could it have anything to do with caching?
0
1280
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 response.redirect command works fine, but the page reloads with the first tab selected every time. If I try to change the selectedindex, it runs my SelectedIndexChanged routine so that doesn't work either. Is there a way I can change the selectedindex of...
3
2127
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: Sub loadPage(sender As Object, e As System.EventArgs, pageURL as String)
10
12214
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 an object that stores the user's basic profile data (username, user type, associated sales region, etc.). I've been taking this user info and placing it in the Session object like so... Session = user;
0
9603
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10643
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10378
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10391
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10121
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7664
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4333
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 we have to send another system
3
3015
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.