473,379 Members | 1,170 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,379 software developers and data experts.

Very strange - ASP page called twice from Netscape

Page with a <form> action calls ASP page.
The ASP page has the following structure
<%@ LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<% Option Explicit %>
<% Server.ScriptTimeOut=100
With Response
.Buffer = True
.Expires = 0
.Clear
End With
' *************************** Implementation code ******************
'*****Intialize session var if needed and local vars
%>
<!--#include Virtual="Include/HtmlHeader_inc.asp"-->
-- some more includes --
<%
' *************************** Functions ******************
Class FECR
-- Here I have the class definition with properties and methods
end class
<%
' *************************** Dimension var ******************
dim Method 'Holds the method
dim CourseNumber 'Holds the course number to add to the registration
in "ADD"
dim URL 'Hold the URL to return to
dim oFE 'Instance of the Frontend Object
dim iResponse, sMessage, sColor
dim bResult
%>
<%
' *************************** Start code ******************
Method = ucase(Request("method"))
set oFE = new FECR
oFE.ConnectionString = Application("SiteConnection")
oFE.RegistrationID = session("RegistrationID")
if oFE.RegistrationID <> 0 then
oFE.Load
end if
if request.form("URL")<>"" then
URL = request.form("URL")
session("URL") = URL
elseif session("URL") <> "" then
URL = session("URL")
end if
CourseNumber = Request("coursenumber")
case "ADD"
'Add the new course to the list
if CourseNumber = "" then
oFE.LastError = "Course Number cannot be blank"
'response.Redirect("http://localhost/"&URL)
else
bResult = ofe.Add(CourseNumber)
end if
case "CONTINUE"
if oFE.LastError = "" then
bResult = oFE.Save()
end if
response.Redirect("http://mysite/" & URL)
case "CHECKOUT"
'Save data to database and Proceed to check out
if oFE.LastError = "" then
bResult = oFE.Save()
end if
-- More code in here --
oFE.RegistrationID = 0
session("RegistrationID") = 0
Response.End
case "DELETE"
'Delete the whole registration and start over. Will loose all data
if oFE.RegistrationID <> 0 then
bResult = oFE.DeleteCourseRegistration
session("RegistrationID")=0
end if
response.Redirect("http://mysite/" & URL)
end select
session("RegistrationID") = oFE.RegistrationID
%>
<!-- Client functions -->
<!------------------------------------------ Validation
------------------------------>
<script language="javascript">
<!--
.... continue with HTML code

Everything is working prefectly with IE.
With Netscape I have a very strange behavior.
Sometimes (couldn't find when) when the ASP page is called with ADD
method, the ASP page works fine, creates a new record in a database to
save the information, creates a session var to save the new record ID
and then send the HTML to the browser that shows the page created by
the ASP as needed and sometimes the ASP finishes and is called right a
way again without the client browser showing anything. Then it runs
through the ASP code again and send a page to client.
Any idea?
Is there something in header that ASP generates that triggers Netscape
to submit back right away without displaying anything?
Is something with buffering and timeout?
Thanks
myalo
Jul 19 '05 #1
0 1659

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

Similar topics

0
by: chotiwallah | last post by:
i'm trying to count pageviews on my website. this is part of the code included in each page: $query = mysql_query("SELECT * FROM pageviews WHERE datei = '$datei'"); ...
7
by: Aaron Prohaska | last post by:
I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site....
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
5
by: jonhyland | last post by:
Hey all, I'm writing a .NET application where I want all HTTP errors such as 404 to redirect back to the home page. Since .NET only handles HTTP errors if the client is requesting a .NET...
8
by: MaryA | last post by:
I have an aspx page that loads twice inspite of using the IsPostBack i removed all controls from the page and still the page_load event is called twice I appriciate any help coz i have lost...
1
by: veenakj | last post by:
Hi, We use ASP.NET framework v1.1.4322, ADO.NET and Oracle 9i Database. This problem is with only with method which takes long time executing a proc in database. In a ASP.NET page_load...
4
by: Nate Murray | last post by:
Hey all, I'm having a strange PHP (4.3.10) problem that seems to have something to do with javascript. This is a bit complex, so hold on to your hats. My issue is that a single function is...
6
by: Hannibal111111 | last post by:
I am getting a strange situation with a .NET 1.1 web application that we have deployed. I have made an update to a code behind page in 1 file, and then made an update to another code behind page. ...
3
by: Joey | last post by:
I have several asp.net 2.0 apps written in VS2005 in C#. For each one, I like to create and track page view events, increment counters, etc. I do this in a block on each page, like this... ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.