472,353 Members | 998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

non duplicable response object error

Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
Response object error 'ASP 0104 : 80070057'

Operation not Allowed

/select_producerrpt.asp, line 0

--
Betty
Sep 5 '06 #1
4 5101

c676228 wrote:
Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
Response object error 'ASP 0104 : 80070057'

Operation not Allowed

/select_producerrpt.asp, line 0
Show the code that causes the error. If you are generating the report
from a database, please specify the type and version. If you are
building a dynamic sql statement to be executed against the database,
response.write the sql and run it against the database to test it for
errors.

--
Mike Brind

Sep 5 '06 #2
Mike,
Thanks for your post.
I pull the data from database and notice that there is one row with column
ponumber is empty, I guess this is where the problem comes from, because in
my code I have --- <%= list("POnumber") %>-- so I set the '12345' in that
column for this record, and then the program runs fine.
But I am still confused since I already checked
if Trim(list("POnumber")) <>"" then
.....
in my code, see below.

Do while Not list.EOF

if Not list.EOF then
if Trim(list("POnumber")) <>"" then
%>
<TR>
<TD ALIGN=RIGHT<%= list("POnumber") %</TD>
<TD ALIGN=RIGHT<%= list("cnt") %</TD>
<TD ALIGN=RIGHT<%= FormatCurrency(list("total")) %>
</TD>
<%
num_trnc=num_trnc+list("cnt")
amt_ttl=amt_ttl+CDbl(list("total"))
list.MoveNext
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
%>
</TR>
<%
loop
%>
Betty
"Mike Brind" wrote:
>
c676228 wrote:
Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
Response object error 'ASP 0104 : 80070057'

Operation not Allowed

/select_producerrpt.asp, line 0

Show the code that causes the error. If you are generating the report
from a database, please specify the type and version. If you are
building a dynamic sql statement to be executed against the database,
response.write the sql and run it against the database to test it for
errors.

--
Mike Brind

Sep 5 '06 #3
Hello,

Regarding the issue, what is your underlying database, SQL server or
Access? And, what is the data type for column "POnumber", string or integer?

If you remove the code "<%= list("POnumber") %>" and replace with a string
like

<TD ALIGN=RIGHTTest PO Number </TD>

And then review the August report, will this fix the problem? If so, you
check the actual value when you generate the August report. for example,
wirte the values directly with:

Response.Write list("POnumber")

Will this give correct values?

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 6 '06 #4
Then PONumber does not = "" (an empty string) - it is probably Null.
Try this test:

ponumber = Trim(list("POnumber"))

If ponumber <>"" And Not IsNull(ponumber) Then
....

You can verify the type using the TypeName function:

Response.Write TypeName(list("POnumber"))

--
Mike Brind

c676228 wrote:
Mike,
Thanks for your post.
I pull the data from database and notice that there is one row with column
ponumber is empty, I guess this is where the problem comes from, because in
my code I have --- <%= list("POnumber") %>-- so I set the '12345' in that
column for this record, and then the program runs fine.
But I am still confused since I already checked
if Trim(list("POnumber")) <>"" then
....
in my code, see below.

Do while Not list.EOF

if Not list.EOF then
if Trim(list("POnumber")) <>"" then
%>
<TR>
<TD ALIGN=RIGHT<%= list("POnumber") %</TD>
<TD ALIGN=RIGHT<%= list("cnt") %</TD>
<TD ALIGN=RIGHT<%= FormatCurrency(list("total")) %>
</TD>
<%
num_trnc=num_trnc+list("cnt")
amt_ttl=amt_ttl+CDbl(list("total"))
list.MoveNext
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
else
%>
<TD ALIGN=RIGHT0 </TD>
<TD ALIGN=RIGHT$0 </TD>
<%
end if
%>
</TR>
<%
loop
%>
Betty
"Mike Brind" wrote:

c676228 wrote:
Hi everyone,
I got an error from my asp page. The interesting thing is it only occurs
when I choose to give me report for August, if I select any other month,
everything looks fine. I have no clue at all what is all about. What does
line 0 mean?
>
>
Response object error 'ASP 0104 : 80070057'
>
Operation not Allowed
>
/select_producerrpt.asp, line 0
>
Show the code that causes the error. If you are generating the report
from a database, please specify the type and version. If you are
building a dynamic sql statement to be executed against the database,
response.write the sql and run it against the database to test it for
errors.

--
Mike Brind
Sep 6 '06 #5

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

Similar topics

11
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses...
35
by: Eitan | last post by:
Hello, How can I write a line (with carriage return + line feed) to the client ? response.write("abcd"), continue the last line, and doesn't put...
2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx...
5
by: Michael | last post by:
Hello, I have a separate Database class that handles any database work that all my asp.net pages can use. My problem is, many times I use...
0
by: =?Utf-8?B?Qm9i?= | last post by:
I have written a Windows service that periodically lists the contents of an FTP directory until a new file becomes available. Then, it gets the new...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.