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.Transfer s 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 3319
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**********@h otmail.com> wrote in message
news:YK%Me.2020 06$tt5.82500@ed tnps90... 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.Transfer s 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**********@h otmail.com> wrote in message
news:YK%Me.2020 06$tt5.82500@ed tnps90... 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.Transfer s 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*****@despam med.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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**********@h otmail.com> wrote in message news:YK%Me.2020 06$tt5.82500@ed tnps90... 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.Transfer s 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**********@h otmail.com> wrote in message
news:YK%Me.2020 06$tt5.82500@ed tnps90... 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.Transfer s 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.co m> wrote in message
news:Ou******** ******@TK2MSFTN GP12.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**********@h otmail.com> wrote in message news:YK%Me.2020 06$tt5.82500@ed tnps90... 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.Transfer s 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**********@h otmail.com> wrote in message
news:YK%Me.2020 06$tt5.82500@ed tnps90... 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.Transfer s 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.Transfer s 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 onClick event but will not
return to the code-behind. I need to get back to the code, which the webform
button will do but I can't make it execute the script.
Any help will be appreciated. Thanks.
|
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 from the "sending" page:
<code>
Public ReadOnly Property SelectedDate() As Date
Get
Return Calendar1.SelectedDate
End Get
|
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 repsonse.redirect. My understanding was that the
server.transfer method doesn't update the URL address bar. However, I've a
situation that I'm a bit confused about and would appreciate any advice on
why the following is occuring (i.e. why I'm obviously missing...
|
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 for the web site are held in a database and
all the labels, buttons etc are populated at run time in the Page_Load
handler. The retreval of the strings from the database is all
|
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 raised in the 'Handle
Postback Events' stage of the control execution life cycle (via the...
| |
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 false.
My problem is that this KB is saying that this problem should be solved with
ServicePack 1 of...
|
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 one page to the next.
The confusion that I am having is that when the user is done with Page2 and
clicks on the button to bring them back to Page1, I want Page1 to basically
come back with the exact same view that it had before the user navigated...
|
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 method. Also enableViewStateMac
is made false in the destination page. Still I cannot get some changed values.
The scenario is such -
1. I have page 1 with a hidden variable named,"myHid" whose value is set to
"Text1"
2. When a submit happens on...
|
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 should be fine if the
postback is to the same server, but what happens if you postback to
another server in the farm?
Is Server.Transfer() safe to use in a web farm?
Thank you in advance,
|
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,...
|
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...
| |
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...
|
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...
|
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();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |