473,405 Members | 2,294 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,405 software developers and data experts.

ASP, ADO and Dictionary object runtime problem!

Hi All,

This has me stumped. I have used a VBScript dictionary object to load
column names and their values so I can use them when I build the web
page.

When I do this, I get the correct value printed on the page:
<%Response.Write("Company Name is: " & objDict.Item("companyname"))%>

But, when I try to use it in an HTML tag, like this, I get a runtime
error '800a01b6' - Object doesn't support this property or method:
'Item':
<input type="text" maxLength=60 size=60 name=comName
value="<%objDict.Item("companyname")%>"></input>

Why does it work in one form and not the other? I have spent so much
time on this that I need to ask for help.
Thanks for any input,

Charles

Sep 16 '05 #1
4 1599
<Ch*******@MailandNews.Com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi All,

This has me stumped. I have used a VBScript dictionary object to load
column names and their values so I can use them when I build the web
page.

When I do this, I get the correct value printed on the page:
<%Response.Write("Company Name is: " & objDict.Item("companyname"))%>

But, when I try to use it in an HTML tag, like this, I get a runtime
error '800a01b6' - Object doesn't support this property or method:
'Item':
<input type="text" maxLength=60 size=60 name=comName
value="<%objDict.Item("companyname")%>"></input>

Why does it work in one form and not the other? I have spent so much
time on this that I need to ask for help.
Thanks for any input,

Charles


Try it with an equal sign:

<input type="text" maxLength="60" size="60" name="comName"
value="<%=objDict.Item("companyname")%>"></input>
Sep 16 '05 #2
Hi,

Thank you very much. For whatever reason I never tried using the equal
sign. Of all the posts I searched regarding this problem I never saw
one that used the equal sign either. Guess I did not search well
enough.

Very simple solution to a full day of wasted time.
Thank you very much,

Charles

Sep 16 '05 #3
= is a shortcut for Response.Write. You'll have to use it or not depending
wether you want to write something to the output or just perform some code
that doesn't write anything to the output...

--
Patrice

<Ch*******@MailandNews.Com> a écrit dans le message de
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi,

Thank you very much. For whatever reason I never tried using the equal
sign. Of all the posts I searched regarding this problem I never saw
one that used the equal sign either. Guess I did not search well
enough.

Very simple solution to a full day of wasted time.
Thank you very much,

Charles

Sep 16 '05 #4
Thanks for the explaination.

Charles

Sep 18 '05 #5

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

Similar topics

125
by: Raymond Hettinger | last post by:
I would like to get everyone's thoughts on two new dictionary methods: def count(self, value, qty=1): try: self += qty except KeyError: self = qty def appendlist(self, key, *values): try:
6
by: Johnny Klunk | last post by:
Wondering if someone can give me a hand with something that I'm sure is really easy - but damned if I know what I'm doing wrong. I'm trying to read the contents of a database into an ASP...
8
by: Rodd Snook | last post by:
I have an application which makes extensive use of the Scripting.Dictionary object. I'm not doing anything silly like putting them outside the page scope -- just creating quite a few of them and...
8
by: Samuel | last post by:
I have a user complaining about a random error (sporadic, cannot be reliably reproduced): ================================= Microsoft VBScript runtime error '800a01fb' An exception occurred:...
26
by: Alan Silver | last post by:
Hello, I have a server running Windows Server 2003, on which two of the web sites use the MegaBBS ASP forum software. Both sites suddenly developed the same error, which seems to be connected to...
4
by: Bill Woodruff | last post by:
< note : this message was sparked in part by comments by David Browne on a previous thread : "inserting an anonymous method as a value in a generic dictionary ?" : David had shown the use of...
8
by: akameswaran | last post by:
I wrote up a quick little set of tests, I was acutally comparing ways of doing "case" behavior just to get some performance information. Now two of my test cases had almost identical results which...
6
by: pamela fluente | last post by:
Hi, please find below a very simple code snippet which is giving me the following error: System.Runtime.Serialization.SerializationException was unhandled Message="The constructor to deserialize...
2
by: Andy B | last post by:
I don't know if this is even working or not but here is the problem. I have a gridview that I databound to a dictionary<string, stringcollection: Contract StockContract = new Contract();...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.