Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Very strange - ASP page called twice from Netscape

Thread Tools

Very strange - ASP page called twice from Netscape

Posts: n/a
Page with a <form> action calls ASP page.
The ASP page has the following structure

<% Option Explicit %>
<% Server.ScriptTimeOut=100
With Response
.Buffer = True
.Expires = 0
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
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"
bResult = ofe.Add(CourseNumber)
end if
if oFE.LastError = "" then
bResult = oFE.Save()
end if
response.Redirect("http://mysite/" & URL)
'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
case "DELETE"
'Delete the whole registration and start over. Will loose all data
if oFE.RegistrationID <> 0 then
bResult = oFE.DeleteCourseRegistration
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?
Reply With Quote

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
Page Submission Events are called twice =?Utf-8?B?UmFqZWV2?= ASP .Net 0 05-17-2006 04:47 PM
Page load of the parent page called twice when a modal dialog is opened from a button click of the user control on the parent page Samy ASP .Net 2 08-15-2005 03:30 PM
ASP.Net javascript "focus" method needs to be called twice?? TC ASP .Net 3 12-08-2004 05:27 AM
Page Load called twice! Colin Basterfield ASP .Net 2 12-22-2003 11:30 PM
When using RaiseBubbleEvent(source, args) in my Parent Page OnBubbleEvent is called twice! Andreas Klemt ASP .Net 0 07-04-2003 01:03 AM