Is there a way to make a page at the receiving end of a Server.Transfer
think that the request is a Postback? (When I say "think it is a Postback,"
I mean I want the page to go through the ENTIRE event sequence for a
postback, including LoadViewState, ProcessPostData, etc.) Even when
Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains
Server.Transfer("A.apsx")) the request is seen as a first-time request, not
a Postback. Is there some way to fool/force the page into thinking the
request is a Postback and run through the entire event gambit, whether it is
from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my
application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the
form to pick up where it left off, so that the little side trip to b.aspx
doesn't interrupt the user experience.
Thanks,
--kaburke 7 3295
Alternatively, is there some way to force execution of the entire event
sequence (LoadViewState, ProcessPostData, etc.) even when the request is not
a Postback?
Thanks,
--kaburke
"kaburke" <ph**********@hotmail.com> wrote in message
news:YK%Me.202006$tt5.82500@edtnps90... Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a Postback," I mean I want the page to go through the ENTIRE event sequence for a postback, including LoadViewState, ProcessPostData, etc.) Even when Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains Server.Transfer("A.apsx")) the request is seen as a first-time request, not a Postback. Is there some way to fool/force the page into thinking the request is a Postback and run through the entire event gambit, whether it is from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience.
Thanks, --kaburke
why dont you just server.execute page b passing the data it needs to b, that
way page a will wait for page b to complete
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"kaburke" <ph**********@hotmail.com> wrote in message
news:YK%Me.202006$tt5.82500@edtnps90... Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a Postback," I mean I want the page to go through the ENTIRE event sequence for a postback, including LoadViewState, ProcessPostData, etc.) Even when Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains Server.Transfer("A.apsx")) the request is seen as a first-time request, not a Postback. Is there some way to fool/force the page into thinking the request is a Postback and run through the entire event gambit, whether it is from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience.
Thanks, --kaburke
Page b.aspx requires user interaction, so doesn't Server.Execute end up (in
this situation) behaving like Server.Transfer (i.e., isn't execution of
a.aspx ended when b.aspx is returned to client)?
Thanks,
--kaburke
"John Timney (ASP.NET MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... why dont you just server.execute page b passing the data it needs to b, that way page a will wait for page b to complete
-- Regards
John Timney ASP.NET MVP Microsoft Regional Director
"kaburke" <ph**********@hotmail.com> wrote in message news:YK%Me.202006$tt5.82500@edtnps90... Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a Postback," I mean I want the page to go through the ENTIRE event sequence for a postback, including LoadViewState, ProcessPostData, etc.) Even when Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains Server.Transfer("A.apsx")) the request is seen as a first-time request, not a Postback. Is there some way to fool/force the page into thinking the request is a Postback and run through the entire event gambit, whether it is from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience.
Thanks, --kaburke
Do you want b.aspx to run in the same browser window or in a different one?
In the latter case you could start another window on client side without any
postback in a.aspx.
Eliyahu
"kaburke" <ph**********@hotmail.com> wrote in message
news:YK%Me.202006$tt5.82500@edtnps90... Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a
Postback," I mean I want the page to go through the ENTIRE event sequence for a postback, including LoadViewState, ProcessPostData, etc.) Even when Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains Server.Transfer("A.apsx")) the request is seen as a first-time request,
not a Postback. Is there some way to fool/force the page into thinking the request is a Postback and run through the entire event gambit, whether it
is from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience.
Thanks, --kaburke
The same window.
Thanks,
--kaburke
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Ou**************@TK2MSFTNGP12.phx.gbl... Do you want b.aspx to run in the same browser window or in a different one? In the latter case you could start another window on client side without any postback in a.aspx.
Eliyahu
"kaburke" <ph**********@hotmail.com> wrote in message news:YK%Me.202006$tt5.82500@edtnps90... Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a Postback," I mean I want the page to go through the ENTIRE event sequence for a postback, including LoadViewState, ProcessPostData, etc.) Even when Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains Server.Transfer("A.apsx")) the request is seen as a first-time request, not a Postback. Is there some way to fool/force the page into thinking the request is a Postback and run through the entire event gambit, whether it is from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience.
Thanks, --kaburke
I found the solution to my problem here: http://www.codeproject.com/aspnet/Pe...tStatePage.asp
My situation was not identical to the scenario outlined in the article, but
the methods described where easily translated.
Thanks,
--kaburke
"kaburke" <ph**********@hotmail.com> wrote in message
news:YK%Me.202006$tt5.82500@edtnps90... Is there a way to make a page at the receiving end of a Server.Transfer think that the request is a Postback? (When I say "think it is a Postback," I mean I want the page to go through the ENTIRE event sequence for a postback, including LoadViewState, ProcessPostData, etc.) Even when Sever.Transfer transfers a page to itself (i.e., Page A.aspx contains Server.Transfer("A.apsx")) the request is seen as a first-time request, not a Postback. Is there some way to fool/force the page into thinking the request is a Postback and run through the entire event gambit, whether it is from the same page or not?
To answer the inevitable question, "Why?" I have the following flow in my application:
a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience.
Thanks, --kaburke
by stating "want the form to pick up where it left off" , i believe you are
looking for the data user entered in the first visit to a.aspx to be
displayed and any changes made to values of controls at server side to be
reflected.
Other than using b.aspx in a popup, do not know of any other default method
supported by asp.net/browser to handle this..
if content of a.aspx and b.aspx is simple, you may try using ASP:PANELs
One way to handle transfering data back and forth between multiple forms is
to use a transaction table in database.
"kaburke" wrote: a.apsx -> b.aspx -> a.aspx
where b.aspx Server.Transfers to a.aspx. Upon return to a.aspx, I want the form to pick up where it left off, so that the little side trip to b.aspx doesn't interrupt the user experience. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Cathy |
last post by:
Has anyone ever made a webform button run an onClick event that is a
Javascript in the HTML code and then after running the script make it go
into the code-behind? An HTML button will run the...
|
by: Amar |
last post by:
After using Server.Transfer to transfer data from one page
to another, I would like to know if there is a way to keep
the receiving web page variables intact after a postback.
Here is the code...
|
by: Bob H |
last post by:
Hi,
I'm aware of the different ways to pass variables between ASP.Net pages. For
pages that need to pass a variable, we're using the server.transfer method.
For others, we're using...
|
by: Pete |
last post by:
Hi all...
I sincerly hope one of the MS guys can clear this up for me...
First some background...
Ok, I have a web site which is fully translatable into several
languages. All the strings...
|
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...
|
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...
|
by: Ken Varn |
last post by:
I have Page1 that does a transfer to page2. When the user is done with
Page2, there is a button on Page2 that they can press to bring them back to
Page1. I use Server.Transfer to navigate from...
|
by: P K |
last post by:
I am using server.transfer for a website being developed in vs.net 2005
And I need to get the posted values after server.transfer. For this I set
the second parameter "true" in the transfer...
|
by: senfo |
last post by:
I'm just curious, what happens to the current Context if you're running
your ASP.NET application in a web farm and transfer values from one page
to the next with the Server.Transfer() method? It...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |