Greetings!
I would like to use Server.Transfer to redirect users to a given page,
while maintaining the state of form fields. This works fine on a single
server.
However, this will be deployed in a load balanced environment. I know
that Session variables and load balanced environments don't mix. Do I
have a cause for concern with Server.Transfer as well?
Thanks in advance.
Chris 13 2979
"Chris Bellini" <ch************ *@spam.chrisbel lini.blows.comw rote in
message news:eH******** ******@TK2MSFTN GP03.phx.gbl...
Greetings!
I would like to use Server.Transfer to redirect users to a given page,
while maintaining the state of form fields. This works fine on a single
server.
However, this will be deployed in a load balanced environment. I know
that Session variables and load balanced environments don't mix. Do I
have a cause for concern with Server.Transfer as well?
Thanks in advance.
Chris
Server transfer will not transfer the request to another server even in a
load balanced system.
I haven't done extensive testing of this, but I am fairly certain that both
server.transfer and server.execute will stay on the same server. At least
that's the theory ... I'll repeat that I haven't done any thorough testing
of this. As with most things, if you have concerns it shouldn't take much
to set up a test.
A
"Chris Bellini" <ch************ *@spam.chrisbel lini.blows.comw rote in
message news:eH******** ******@TK2MSFTN GP03.phx.gbl...
Greetings!
I would like to use Server.Transfer to redirect users to a given page,
while maintaining the state of form fields. This works fine on a single
server.
However, this will be deployed in a load balanced environment. I know
that Session variables and load balanced environments don't mix. Do I
have a cause for concern with Server.Transfer as well?
Thanks in advance.
Chris
Aaron Bertrand [SQL Server MVP] wrote:
I haven't done extensive testing of this, but I am fairly
certain that both server.transfer and server.execute will
stay on the same server. At least that's the theory ...
They HAVE TO stay on the same server. They share a response stream (unlike
Response.Redire ct, which tells the browser to send a new request, and
subsequently does not share a response stream with the original request).
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
They HAVE TO stay on the same server. They share a response stream (unlike
Response.Redire ct, which tells the browser to send a new request, and
subsequently does not share a response stream with the original request).
Right, after I posted I thought about it a bit more, and of course
server.transfer/execute would not possibly be able to send anything back out
to the load balancer, because by definition they stay local.
Aaron Bertrand [SQL Server MVP] wrote:
>They HAVE TO stay on the same server. They share a response stream (unlike Response.Redir ect, which tells the browser to send a new request, and subsequently does not share a response stream with the original request).
Right, after I posted I thought about it a bit more, and of course
server.transfer/execute would not possibly be able to send anything back out
to the load balancer, because by definition they stay local.
So it's safe to say that shouldn't run into any issues of having
hidden form fields disappear on me after a call to Server.Transfer ?
Chris
Chris Bellini wrote:
So it's safe to say that shouldn't run into any issues of
having hidden form fields disappear on me after a call to
Server.Transfer ?
Hidden form fields are a client-side issue. The server only knows requests.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Chris Bellini" <ch************ *@spam.chrisbel lini.blows.comw rote in
message news:u3******** ******@TK2MSFTN GP03.phx.gbl...
Aaron Bertrand [SQL Server MVP] wrote:
They HAVE TO stay on the same server. They share a response stream
(unlike
Response.Redire ct, which tells the browser to send a new request, and
subsequently does not share a response stream with the original
request).
Right, after I posted I thought about it a bit more, and of course
server.transfer/execute would not possibly be able to send anything back
out
to the load balancer, because by definition they stay local.
So it's safe to say that shouldn't run into any issues of having
hidden form fields disappear on me after a call to Server.Transfer ?
No you shouldn't. All form fields will appear to the transfered to page the
same as they would have to the original target.
>
Chris
Anthony Jones wrote:
No you shouldn't. All form fields will appear to the transfered to page the
same as they would have to the original target.
>Chris
Phew, that's good to hear :) Thanks.
Chris
Anthony Jones wrote:
>So it's safe to say that shouldn't run into any issues of having hidden form fields disappear on me after a call to Server.Transfe r?
No you shouldn't. All form fields will appear to the
transfered to page the same as they would have to the
original target.
That's not technically correct. The two scripts share Request and Response
objects, which are server-side, while form fields (hidden or otherwise) are
client-side constructs.
The conclusion is correct, however. There should be no loss of Request
elements in the transfer from one script to another.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mohit |
last post by:
Hello Friends,
Our department has created a few (6) Web Applications and all these
applications share a common piece of code which does the "User
Authentication".
I would like to isolate the authentication process.
I am thinking of having a common/central server which gets all
authentication requests and creates a valid session for all...
|
by: Lyn Duong |
last post by:
Hi all
I'm trying to transfer data from sqlserver 2000 to ibm db2 AIX 8.1.4
using dts packages
This works when I use db2 ole db drivers but the problem is that the
transfer is very slow as the rows are committed 1 by 1. I want to use
th odbc driver but it doesn't seem to work.
Has anyone experienced this? any ideas to speed up the...
|
by: Harsh Thakur |
last post by:
Hi,
I'd like to know the performance related differences between
Response.Redirect and Server.Transfer.
I'd like to redirect the user to a different page.
I can either do a Response.Redirect("URL") or a Server.Transfer("URL").
So I'd like to find out which is more efficient/better.
Can anyone please tell me or give any pointers to links on...
|
by: Mr Wizard |
last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer occurs. I get invalid IsPostBack results which I believe can fixed using the patch in KB:821156. How do I get this patch?
Another question in the...
|
by: Shikari Shambu |
last post by:
Hi,
I have a ASP.NEt web application with forms authentication deployed on
single server. I do not use Session State, just the HttpContext and so on.
Now, we want to move to a load balanced environment. What are the things
that I need to worry about/ change to enable seamlessly move a logged in
user across servers?
TIA
| |
by: Stephen |
last post by:
Hi All!
This really is a file permissions problem ... although I'm not sure how
to solve it. Any assistance would be greatly appreciated.
I have a series of load balanced servers. Each of the servers is
arranged exactly the same and handles file uploads from users as
follows:
1) User submits file to www1 server
|
by: Steven Nagy |
last post by:
Hi all,
What are the major considerations when considering Server.Transfer?
I have some legacy apps (when I say legacy, I mean ASP.NET1.0) that use
Server.Transfer for almost everything. I always thought
Response.Redirect was better because more of the items are GCed. So I
am rethinking about the importance of Server.Transfer usage. In the...
|
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= |
last post by:
Hi,
I'm using Threads, and when I try to do Server.Transfer, I recieved an
error. (child object does not exist...)
My Code:
Dim t As New Thread(AddressOf Hilo)
Private Sub Hilo()
Thread.Sleep(1000)
|
by: BA |
last post by:
Hi Everyone,
I have an application that sits behind a server farm, the application needs
to pass its NLB IP address in the message that it sends to another service.
From C# code, how can I determine the IP address of the network load
balanced machine that the message is generated from?
So, in essence, I have server1, server2 and server3...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |