473,503 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

server.transfer etc.

qqq
In a web app. I have a 'master' form (EventDetail.aspx) which displays
existing bookings for an event. If the user clicks on a booking they are
taken (with a server.transfer) to Booking.aspx which displays the details
and lets them modify. I notice that when the Booking.aspx form is displayed,
the browser address bar still shows the address of the previous form? - huh?

After the user submits changes to Booking.aspx I do a server.transfer back
to EventDetail.aspx - the address bar still shows "...EventDetail.aspx". The
real problem comes if they then refresh (F5) this screen. IT SOMEHOW
RE-INVOKES THE DATABASE UPDATE FROM BOOKING.ASPX!?!? Through debugging I
see that after the refresh it runs the OnLoad for Booking.aspx (IsPostBack =
true) , then jumps to the code for BtnSubmit (which does the database
update).

Could anyone help me understand what the heck is going on here?

Thanks,

Paul.
Nov 20 '05 #1
3 1123
HI,
You are referring to a 'Master' form. Is this VS2005 Beta1 ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"qqq" <qq*@qqq.com> wrote in message
news:O$*************@TK2MSFTNGP12.phx.gbl...
In a web app. I have a 'master' form (EventDetail.aspx) which displays
existing bookings for an event. If the user clicks on a booking they are
taken (with a server.transfer) to Booking.aspx which displays the details
and lets them modify. I notice that when the Booking.aspx form is displayed, the browser address bar still shows the address of the previous form? - huh?
After the user submits changes to Booking.aspx I do a server.transfer back
to EventDetail.aspx - the address bar still shows "...EventDetail.aspx". The real problem comes if they then refresh (F5) this screen. IT SOMEHOW
RE-INVOKES THE DATABASE UPDATE FROM BOOKING.ASPX!?!? Through debugging I see that after the refresh it runs the OnLoad for Booking.aspx (IsPostBack = true) , then jumps to the code for BtnSubmit (which does the database
update).

Could anyone help me understand what the heck is going on here?

Thanks,

Paul.

Nov 20 '05 #2
qqq
No - VB 7.1.3088.

Paul.

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
HI,
You are referring to a 'Master' form. Is this VS2005 Beta1 ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"qqq" <qq*@qqq.com> wrote in message
news:O$*************@TK2MSFTNGP12.phx.gbl...
In a web app. I have a 'master' form (EventDetail.aspx) which displays
existing bookings for an event. If the user clicks on a booking they are
taken (with a server.transfer) to Booking.aspx which displays the details and lets them modify. I notice that when the Booking.aspx form is displayed,
the browser address bar still shows the address of the previous form? -

huh?

After the user submits changes to Booking.aspx I do a server.transfer back to EventDetail.aspx - the address bar still shows "...EventDetail.aspx".

The
real problem comes if they then refresh (F5) this screen. IT SOMEHOW
RE-INVOKES THE DATABASE UPDATE FROM BOOKING.ASPX!?!? Through

debugging I
see that after the refresh it runs the OnLoad for Booking.aspx
(IsPostBack =
true) , then jumps to the code for BtnSubmit (which does the database
update).

Could anyone help me understand what the heck is going on here?

Thanks,

Paul.


Nov 20 '05 #3
If you want the address bar to show the page you are running, use
response.redirect instead.

I've found server.transfer very hard to program effectively with for the
very reasons you point out. Wait until you start having CSS issues after
you transfer to a file that resides in a different folder. It geats ugly!
(pun intended) :^)

Greg

"qqq" <qq*@qqq.com> wrote in message
news:O$*************@TK2MSFTNGP12.phx.gbl...
In a web app. I have a 'master' form (EventDetail.aspx) which displays
existing bookings for an event. If the user clicks on a booking they are
taken (with a server.transfer) to Booking.aspx which displays the details
and lets them modify. I notice that when the Booking.aspx form is displayed, the browser address bar still shows the address of the previous form? - huh?
After the user submits changes to Booking.aspx I do a server.transfer back
to EventDetail.aspx - the address bar still shows "...EventDetail.aspx". The real problem comes if they then refresh (F5) this screen. IT SOMEHOW
RE-INVOKES THE DATABASE UPDATE FROM BOOKING.ASPX!?!? Through debugging I see that after the refresh it runs the OnLoad for Booking.aspx (IsPostBack = true) , then jumps to the code for BtnSubmit (which does the database
update).

Could anyone help me understand what the heck is going on here?

Thanks,

Paul.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2221
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...
4
2086
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...
5
7802
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
9
4589
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
5
2555
by: Guadala Harry | last post by:
I've been reading up on Server.Transfer as well as doing some testing, and it appears to always raise the ThreadAbortException error. On one hand I've read a bunch of promotional-type material...
11
5993
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...
8
3870
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
6
2166
by: n# | last post by:
A Basic Question in ASP.NEt 1.1 In Page_Load Event I am doing a Server.Transfer. But it throws an error on the browser windows showing "Server Application Not Found" Pls help me
4
3986
by: evantay | last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties from my master pages within a page that inherits from that master page (a child page). However the values are always null....
2
3087
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()...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
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...
0
7328
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...
1
6991
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...
0
5578
agi2029
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,...
1
5013
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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...

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.