I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening?
Thanks,
--
Jerry 11 3725
Jerry wrote:
I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening? http://www.aspfaq.com/show.asp?id=2524
--
Mike Brind
Mike Brind wrote:
Jerry wrote:
I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening?
http://www.aspfaq.com/show.asp?id=2524
Thanks Mike.
I tried the example and I get the following error:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'Item'
So I added Dim Item and I get the original error messgae again:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
--
Jerry
"Jerry" <je*******@gmai l.comwrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...
>
Mike Brind wrote:
Jerry wrote:
I'm using this code:
>
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) &
"<BR>"
Next
>
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
>
Microsoft VBScript runtime error '800a01c2'
>
Wrong number of arguments or invalid property assignment
>
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
>
Any ideas why this is happening?
>
http://www.aspfaq.com/show.asp?id=2524
Thanks Mike.
I tried the example and I get the following error:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'Item'
So I added Dim Item and I get the original error messgae again:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
--
Jerry
The code you have posted is correct assuming that Session and Response are
what we think they are and it is this code that is actually producing the
error and not something else.
Which version of IIS are we talking about?
Anthony Jones wrote:
"Jerry" <je*******@gmai l.comwrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...
Mike Brind wrote:
Jerry wrote:
I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) &
"<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening?
> http://www.aspfaq.com/show.asp?id=2524
Thanks Mike.
I tried the example and I get the following error:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'Item'
So I added Dim Item and I get the original error messgae again:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
--
Jerry
The code you have posted is correct assuming that Session and Response are
what we think they are and it is this code that is actually producing the
error and not something else.
Which version of IIS are we talking about?
IIS 5.1
If I remove the session(Item) part, it will list the session names.
Dim Item
For Each Item in Session.Content s
Response.Write Item & "<BR>"
Next
Jerry wrote:
I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening?
Thanks,
I've never used Session.Content s, but it should work. This is what I always
do:
For Each strName in Session
Response.Write strName & " - " & Session(strName ) & "<BR>"
Next
Anyways, if you create a page containing only the snip of code you've posted
above, will the error occur?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows [MVP] wrote:
Jerry wrote:
I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening?
Thanks,
I've never used Session.Content s, but it should work. This is what I always
do:
For Each strName in Session
Response.Write strName & " - " & Session(strName ) & "<BR>"
Next
Anyways, if you create a page containing only the snip of code you've posted
above, will the error occur?
Yes, an ASP page with only the following:
<%
Dim Item
For Each Item in Session.Content s
Response.Write Item & " - " & Session(Item) & "<BR>"
Next
%>
produces the same error.
If I remove the .Contents then I get the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
/trs/test.asp, line 3
Jerry wrote:
Bob Barrows [MVP] wrote:
Jerry wrote:
I'm using this code:
>
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
>
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
>
Microsoft VBScript runtime error '800a01c2'
>
Wrong number of arguments or invalid property assignment
>
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
>
Any ideas why this is happening?
>
Thanks,
I've never used Session.Content s, but it should work. This is what I always
do:
For Each strName in Session
Response.Write strName & " - " & Session(strName ) & "<BR>"
Next
Anyways, if you create a page containing only the snip of code you've posted
above, will the error occur?
Yes, an ASP page with only the following:
<%
Dim Item
For Each Item in Session.Content s
Response.Write Item & " - " & Session(Item) & "<BR>"
Next
%>
produces the same error.
If I remove the .Contents then I get the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
/trs/test.asp, line 3
Try:
Dim x
For Each x in Session.Content s
Response.Write x & " - " & Session(x) & "<BR>"
Next
%>
Just a theory, but Item is a keyword in VBScript. That might be the
cause of the error.
--
Mike Brind
Mike Brind wrote:
Jerry wrote:
Bob Barrows [MVP] wrote:
Jerry wrote:
I'm using this code:
Dim strName
For Each strName in Session.Content s
Response.Write strName & " - " & Session.Content s(strName) & "<BR>"
Next
If I only do a response.write strName, it shows all the session names
but when I include the session.content s it gives me the following
error:
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment
I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
using ADODB.Recordset but I'm not accessing data on this page.
Any ideas why this is happening?
Thanks,
>
I've never used Session.Content s, but it should work. This is what I always
do:
>
For Each strName in Session
Response.Write strName & " - " & Session(strName ) & "<BR>"
Next
>
>
Anyways, if you create a page containing only the snip of code you've posted
above, will the error occur?
Yes, an ASP page with only the following:
<%
Dim Item
For Each Item in Session.Content s
Response.Write Item & " - " & Session(Item) & "<BR>"
Next
%>
produces the same error.
If I remove the .Contents then I get the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
/trs/test.asp, line 3
Try:
Dim x
For Each x in Session.Content s
Response.Write x & " - " & Session(x) & "<BR>"
Next
%>
Just a theory, but Item is a keyword in VBScript. That might be the
cause of the error.
Same error. I was initially using strName instead of Item but saw Item
in an example.
--
Jerry
Jerry wrote:
>> Anyways, if you create a page containing only the snip of code you've posted above, will the error occur?
Yes, an ASP page with only the following:
<%
Dim Item
For Each Item in Session.Content s
Response.Write Item & " - " & Session(Item) & "<BR>"
Next
%>
produces the same error.
If I remove the .Contents then I get the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
/trs/test.asp, line 3
I was just able to reproduce your error by using:
for each key in session.Content s
Response.Write "<BR>" & key & ": " & session.content s(key)
next
The error went away when I changed it to:
for each key in session.Content s
Response.Write "<BR>" & key & ": " & session(key)
next
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wayno |
last post by:
My php logs are coming up empty. I have done all I can think of, and
all that made sense to me. Can someone take a look at my php.ini
please and tell me what you think may be the problem.
I double-checked the path to my error log. It is in
/var/www/logs/php_error_log
Thanks. :)
-Wayne Stevenson
|
by: Karim M Ladhu |
last post by:
I am having a little trouble with this...
When trying to log in to my website via ASP,
the local IIS host returns a page can not be
displayed internal server error and starts
complaining about invalid code.
----------------------------------------------
The error is: 500.100 Internal Server Error
|
by: Bryan Tang |
last post by:
I built an ASP to search the content in index server. It is ok if search in
English. Whenever I search in Chinese, I will got the following error
message,
CreateRecordset ?u?~ '80004005'
£gLak?u¢DXao?u?~
/search/query.asp, |C203
|
by: Ross |
last post by:
I am trying to pass a datatable from a page to another
page in a different frame. The user would see the results
of a query in the first frame then could navigate through
the second frame to a page that uses the query data for
another purpose.
I kept getting null-object-reference errors when I tried
to bind the data to a control in the second frame. In an
attempt to trace the problem I set up a little test of
session variables to see if...
|
by: James Wallace |
last post by:
I hope that someone can help me out there with this problem.
I get an itermittant problem with our web page that occurs about once
every 10 to 15 days where the only way to fix the problem is to bounce
the web server. The error can be seen below.
I have looked at the stack trace and determined where the error is
occuring but when I look at my code, where it says that I have an
unhandled exception, I have error handling to handle it. ...
| |
by: tshad |
last post by:
This has been driving me crazy.
I have been trying to get the error handling working on my system and can
get parts of it working and others won't work at all.
I found that you can't access session variables from Application_Error
event, but I need to so I don't need to set up traces to see what they are
during an error. I am emailing the error condition to myself when it
happens.
|
by: ras26 |
last post by:
I have a WebSite "App1" which has an external assembly "Lib1".
Inside this external assembly we have developed some classes that derive
from "System.Web.UI.Page". One of these pages is called "WebNotification".
In the WebSite "App1" we create an instance of "WebNotification", but when
this class tries to access some Session variables it generates the following
error:
Session state can only be used when enableSessionState is set to...
|
by: maansi.creations |
last post by:
Service unavailable error comes randomly while accessing our website
and gets alright in matter of seconds....Could some one tell the
possible reasons for these to happen: i got a earlier suggestion to our
error as follows:
-------------------------------------------------------
If the error continues, it means that your website is exceeding the
resource thresholds we set in IIS. Your website has been allocated 20%
CPU and 800 MB of...
|
by: Chronictank |
last post by:
Hi, as a bit of background (and seeing as it is my first post :)) i am a complete newbie at perl. I literally picked it up a week ago to do this project as it seemed like the best choice for a language to connect to a SQL database in a Unix envirment as well as script parsing so there is more than likely a ton of things i could have done a better way.
I have been at this for 3 days now and cant for the life of me work out why the code is...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |