473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Block server.transfer on Page Refresh

Hello

I have a Server.Transfer from Page A to Page B. When a user presses 'Refresh', I don't want Server.Transfer to be executed again. What is the best way to trap this? I don't want to burn a Session variable for this issue

Thanks - Brian
Nov 18 '05 #1
1 2059
> I have a Server.Transfer from Page A to Page B. When a user presses
'Refresh', I don't want
Server.Transfer to be executed again. What is the best way to trap this? I don't want to burn a Session variable for this issue.


Well, the client is unaware of the transfer unless you do a
response.redirect, so refresh will start over again. You would need to store
something on the server so it can detect that the script has already run
from the page you transferred to, or else use response.redirect instead.
Without any details, it's hard to say what criteria this could be, but you
do have to design around the fact that you can't disable functionality on
the browser itself.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
Nov 18 '05 #2

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

Similar topics

3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
4
by: john | last post by:
I have an app that uses Server.Transfer from page1 to page2. page2 needs to be able to read all the values from page1's form. The problem is, if the user clicks the back button on page2 after a...
1
by: Jim Bayers | last post by:
This has been driving me crazy. server.transfer doesn't set the focus to the page I transfer to so when the user does a refresh, the results aren't what's expected. I have a datagrid on one...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
by: qqq | last post by:
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...
3
by: James Hunter Ross | last post by:
Apparently, our developers used "server transfer" in our ASP.NET, and because of this Back/Refresh presses by users are problematic. Apparently the server has information about state and other...
2
by: Totto | last post by:
Hi, I'm doing a server.Transfer to a page with http-equiv="refresh" but when the refresh occurs the page that was doing the Server.Transfer is loaded. Anyone know if there is a way round this....
2
by: archana | last post by:
Hi all, I am new to asp.net. I am trying to use server.transfer and respnse.redirect. When i nagivate to page using server.transfer on navigated page if i click on refresh i am getting...
2
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, Is there any difference in handling the site navigation by using location.href or by using server.transfer? window.location.href = '<%=Response.ApplyAppPathModifier("~/MyAccount.aspx")...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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
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
Oralloy
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,...
0
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...
0
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 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.