473,324 Members | 2,567 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,324 software developers and data experts.

Browsing issues

Hi There

Is there any event that can automatically fire when a users Browses back to
an .asp Form ?

For example - if I have a datagrid that uses a SELECT button to redirect the
user to another page (using server.transfer) if they then look at the
information on the new page and click BACK in their browser so they go back
to the original page with the datagrid - what can I use to identify this has
occurred to the server and trigger some code ??

Thanks for your help

Stuart
Nov 19 '05 #1
2 803
Unless you timeout the page immediately, they are going to read it from
cache, which means no trip to the server. If you time it out immediately
after Response, however, the use will either refresh the page or get a page
timed out page.

For ASP.NET:
I believe you have a potential architecture problem. There are some
instances where Server.Transfer is in order, of course, but in more cases
than not, it is a sign that some code needs to be moved out of pages and into
classes. This facilitates the model of a form being used to completely
perform a task, rather than having to pass the request to another page.

For traditional ASP:
ASP is a sticky wicket, as it forces you into a model where you use pages
like classes. You can overcome this with VB COM components, but that is an
additional skill developers will have to have to code in your shop. You can
also, somewhat, overcome it with include files.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Stuart" wrote:
Hi There

Is there any event that can automatically fire when a users Browses back to
an .asp Form ?

For example - if I have a datagrid that uses a SELECT button to redirect the
user to another page (using server.transfer) if they then look at the
information on the new page and click BACK in their browser so they go back
to the original page with the datagrid - what can I use to identify this has
occurred to the server and trigger some code ??

Thanks for your help

Stuart

Nov 19 '05 #2
Thanks - I thought I may be in trouble with this... Perhaps you know how I
can disable the "Standard Button" bar in their browser (all are using IE5 or
6) - it's an intranet application and I can get away with this and add
functionality to my pages for them to get around... ??

Thanks again for your input

"Cowboy (Gregory A. Beamer) - MVP" wrote:
Unless you timeout the page immediately, they are going to read it from
cache, which means no trip to the server. If you time it out immediately
after Response, however, the use will either refresh the page or get a page
timed out page.

For ASP.NET:
I believe you have a potential architecture problem. There are some
instances where Server.Transfer is in order, of course, but in more cases
than not, it is a sign that some code needs to be moved out of pages and into
classes. This facilitates the model of a form being used to completely
perform a task, rather than having to pass the request to another page.

For traditional ASP:
ASP is a sticky wicket, as it forces you into a model where you use pages
like classes. You can overcome this with VB COM components, but that is an
additional skill developers will have to have to code in your shop. You can
also, somewhat, overcome it with include files.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Stuart" wrote:
Hi There

Is there any event that can automatically fire when a users Browses back to
an .asp Form ?

For example - if I have a datagrid that uses a SELECT button to redirect the
user to another page (using server.transfer) if they then look at the
information on the new page and click BACK in their browser so they go back
to the original page with the datagrid - what can I use to identify this has
occurred to the server and trigger some code ??

Thanks for your help

Stuart

Nov 19 '05 #3

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

Similar topics

10
by: Paul Kooistra | last post by:
I need a tool to browse text files with a size of 10-20 Mb. These files have a fixed record length of 800 bytes (CR/LF), and containt records used to create printed pages by an external company. ...
26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
4
by: ELEMA.LO | last post by:
Hi all, I installed several times the xml analysis provider but I am having severe issues in having it working on a Windows 2003 server machine. I followed all the described steps including adding...
0
by: Alan Cobb | last post by:
Hi, I have a VS2003 solution that includes CSharp (CS), managed C++ (MCPP) and unmanaged C++ (UMCPP) projects. It's unclear to me how integrated the source browsing is supposed to be for all...
1
by: Big Tony | last post by:
Is it possible to specify a global default page for a virtual directory? My Virtual directory has 111 subfolders and I do not want to copy a default.aspx to each one. It is set to allow directory...
3
by: Jonathan Dixon | last post by:
I am using this code to get a list of folders and files System.IO.DirectoryInfo didocs1=new System.IO.DirectoryInfo("C:\\Shearings\\" + jonn + "\\" + folder); I was wondering if there was...
0
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have...
5
by: Bill Davidson | last post by:
All: Pardon the newbie question, but let's say I've got two pages in my website: Welcome.aspx NoNav.aspx I want users to be able to navigate to the welcome.aspx page (e.g....
0
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number...
2
by: Joe Kovac | last post by:
Hi! I have a Web Site, where I turned directory browsing off. I want only one sub folder to be browsable: e.g. MyApp/Files/... How do I do that? Any setting in the web.config? Thanks Joe
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.