Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Block server.transfer on Page Refresh

Reply
Thread Tools

Block server.transfer on Page Refresh

 
 
=?Utf-8?B?YnJpYW4=?=
Guest
Posts: n/a
 
      11-24-2003
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
 
Reply With Quote
 
 
 
 
Chris Jackson
Guest
Posts: n/a
 
      11-25-2003
> 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)
--


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
How do i refresh a datagrid from a pop up window without having to refresh the whole page? Pkenty ASP .Net Web Controls 0 05-28-2004 07:06 AM
Problem with refresh button breaking automatic refresh brian lanning ASP .Net 0 07-29-2003 07:57 PM
how can i block the refresh of all page when click on a node of treeview? Babba ASP .Net Web Controls 1 07-27-2003 04:25 AM



Advertisments