By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

server.transfer etc.

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.