473,471 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Strange error

PW

I have an ASP that is gathering values (Activities) from the previous ASP.
Depending on what Activities the user selects, dictates what will be
displayed by the subsequent ASP.

If you notice in the below code segment, if the response.end is commented
then the javascript does not get processed and the program fails later on
when DB selects are performed.

If the response.end is not commented, then the javascript is processed and
the appropriate error ("You must select 2 activities") is displayed.

I cant figure out whats going on. Is it some kind of timing issue ?

Thanks in advance,
PW

-------------------------------------------------------

myAct1 = Request.QueryString("cbAct1")
myAct2 = Request.QueryString("cbAct2")
myAct3 = Request.QueryString("cbAct3")
myAct4 = Request.QueryString("cbAct4")
myActs = myAct1 & myAct2 & myAct3 & myAct4

if len(myActs) <> 4 then
%>
<script language="Javascript">
alert("You must select 2 activities")
history.go(-1)
</script>
<%
end if

response.write myActs
response.write len(myActs)
response.end


May 23 '06 #1
2 1268
Have you tried doing a response.flush?

if len(myActs) <> 4 then
%>
<script language="Javascript">
alert("You must select 2 activities")
history.go(-1)
</script>
<%
response.flush
end if

Earl
www.jhdesigninc.com

May 23 '06 #2
PW

"surf_doggie" <ea*******@gmail.com> wrote in message
news:11********************@38g2000cwa.googlegroup s.com...
Have you tried doing a response.flush?

if len(myActs) <> 4 then
%>
<script language="Javascript">
alert("You must select 2 activities")
history.go(-1)
</script>
<%
response.flush
end if

Earl
www.jhdesigninc.com

DUDE, you are my hero!!! Thats fixed it. Its been driving me mad. Thank
you so much. :-)

May 23 '06 #3

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

Similar topics

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...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
0
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
6
by: Gary | last post by:
I have an application that has been working just fine for a couple of years. It queries a SQL database and returns some formatted data back to the client. I have a new client, who has a larger...
5
by: Nathan Sokalski | last post by:
When I view my index.aspx page any time after the first time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize)...
0
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
1
by: JoReiners | last post by:
Hello, I have a really strange problem. I'm unable to figure it out on my own. I parse very simple xml documents, without any check for their form. These files look very similar and are encoded...
11
by: Mike C# | last post by:
Hi all, I keep getting a strange error and can't pin it down. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's...
3
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.