server.transfer etc.

Q

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.
 
O

One Handed Man \( OHM - Terry Burns \)

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
 
Q

qqq

No - VB 7.1.3088.

Paul.

One Handed Man ( OHM - Terry Burns ) said:
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

debugging (IsPostBack
 
G

Greg Burns

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top