On Server.Transfer (), is there a reason why the previous page's
elements would appear on the new page? Note: this transfer is occuring
between two pages on the same server.
<Scenario>
I'm using Page.Context.It ems and Server.Transfer to communicate
between two pages (lets call them page1.aspx and page2.aspx). On
postback to page1.aspx I preform a Server.Transfer () to page2.aspx.
The transfer occurs, but page2.aspx renders incorrectly. The beginning
page elements (header, start of body) from page1.aspx appear in
page2.aspx.
</Scenario>
Currently I have found little online that discusses this issue. Any
help would be appreciated.
Cheers,
Pete 3 2022
Peter Nofelt wrote:
On Server.Transfer (), is there a reason why the previous page's
elements would appear on the new page? Note: this transfer is occuring
between two pages on the same server.
<Scenario>
I'm using Page.Context.It ems and Server.Transfer to communicate
between two pages (lets call them page1.aspx and page2.aspx). On
postback to page1.aspx I preform a Server.Transfer () to page2.aspx.
The transfer occurs, but page2.aspx renders incorrectly. The beginning
page elements (header, start of body) from page1.aspx appear in
page2.aspx.
</Scenario>
Currently I have found little online that discusses this issue. Any
help would be appreciated.
Cheers,
Pete
If you output the beginning of the page during the execution of the
first file and then do a transfer, that will not clear the created
contents and start over, it will just continue to output content. That's
how a transfer works, it just continues execution of the new file, but
with the same Request and Response objects as the first file.
If you don't want any output from the first file, you simply have to
make sure that it doesn't produce any before you make the transfer.
--
Göran Andersson
_____ http://www.guffa.com
Or try calling Response.Clear( )
"Göran Andersson" <gu***@guffa.co mwrote in message
news:ub******** ******@TK2MSFTN GP06.phx.gbl...
Peter Nofelt wrote:
>On Server.Transfer (), is there a reason why the previous page's elements would appear on the new page? Note: this transfer is occuring between two pages on the same server.
<Scenario> I'm using Page.Context.It ems and Server.Transfer to communicate between two pages (lets call them page1.aspx and page2.aspx). On postback to page1.aspx I preform a Server.Transfer () to page2.aspx.
The transfer occurs, but page2.aspx renders incorrectly. The beginning page elements (header, start of body) from page1.aspx appear in page2.aspx. </Scenario>
Currently I have found little online that discusses this issue. Any help would be appreciated.
Cheers, Pete
If you output the beginning of the page during the execution of the first
file and then do a transfer, that will not clear the created contents and
start over, it will just continue to output content. That's how a transfer
works, it just continues execution of the new file, but with the same
Request and Response objects as the first file.
If you don't want any output from the first file, you simply have to make
sure that it doesn't produce any before you make the transfer.
--
Göran Andersson
_____ http://www.guffa.com
Thanks, this helps.
>If you don't want any output from the first file, you simply have to
make sure that it doesn't produce any before you make the transfer.
When does the originating begin to emit page markup? After postback? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: StephenMcC |
last post by:
Hi All,
Got a quick query in relation to the Server.Transfer method available in IIS
5+/ASP. I've got an issue where I want to take a portion of an online app and
extract this out into a web site on its own, so I will end up having two web
sites. This planned to aid problems we've been having with performance, as if
the portion (which is an...
|
by: Michael Rybak |
last post by:
hi, everyone.
I'm writing a 2-players game that should support network mode. I'm now
testing it on 1 PC since I don't have 2. I directly use sockets, and
both client and server do computations, the only data transfered is
user mouse/kbd input.
It works synchronously, but somehow, when I play in client window,
both client and ...
|
by: Justin |
last post by:
Hi,
Im confused here over the usage of Response.Redirect and
Server.Transfer. I used frameset for my work, what are the
proper usages of the two methods that seems working
similar..
The problem i faced while using Response.Redirect is that
the page that is directed to, does not looks as
desired..the textboxes are not visible anymore and...
|
by: Bratislav Jevtic |
last post by:
hi,
ASP.NET, framework 1.0, patch 2, Windows 2000 server
is this possible: from server side to say "go back" to browser?
-------------------
scenario:
I've got some page with a list. When one clicks some button goes to "detail"
page - for to add/update data. That form may have number of postbacks. On
|
by: RAJ |
last post by:
In our multi-tier application, we have several ASP.NET user controls which
will update the same data source provided by middle tier logic.
In this particular scenario we have one user control displaying the contents
of the data source, whilst another control updates the datasource via a
command buttons implementation of 'Click', an event...
| |
by: Alexander Bosch |
last post by:
Hi,
I'm having a problem similar to the one that's stated in this KB
http://support.microsoft.com/default.aspx?scid=kb;en-us;839521
When I'm posting a page to itself with the bool value as true it falls into
an infinite loop and later a StackOverflow Exception. I need to do this and
not a Response.Redirect or a transfer with the bool in...
|
by: Mike |
last post by:
I need to do the logical equivelent of Server.Transfer to another
server whos identity is known only upon receipt of the request. (The
other machine is on-site, but not addressable from the outside world,
which is one of many reasons I can't do a Redirect.)
I'm assuming I have to make another request, and then copy the response
back to the...
|
by: p3t3r |
last post by:
I am using .NET2 and have a number of aspx pages. On each page is a
LinkButton that performs a server.transfer() to another page.
If we use page names A,B,C,D,E as an example. I start on page A and do a
server.transfer to page B. The address bar still shows page A (which is what
I want). Page B then does a server.transfer to page C. Now the...
|
by: lanem |
last post by:
I want to use server.transfer to go to a new aspx page. I want to be able to
still have the viewstate from the previous page. I have researched this and
see a lot about it, but I can't find a good straight forward example. Does
anyone know how to do this? I'm using asp.net 2.0 and vb.net. Thanks.
|
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: 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. ...
| |
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: 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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |