473,399 Members | 3,302 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,399 software developers and data experts.

Collections and maximum Count/Length

I am working on a project that requires me to check the number of rows
in a table with the same HTML "ID" value.

I do this in my code with:

i = document.all(rowid).length

However, if the number of rows with the same ID is greater than 8, it
always returns 8 (not 9, 10, etc.)

Also, I am seeing a similiar response in a 2nd page when I attempt to
get the number of elements in the Form collection

i = Request.Form.Count

This also returns a value of 8 although I know there are more elements
in the collection than 8.

Is any one aware of an issue like this? Maybe some kind of setup
issue with IIS?

Please help.

Thanks.
I am hoping this is a
Jul 19 '05 #1
2 3274
More than really weird. Double check the names (and this is the name
attribute rather than the id at least server side). Are they all inside the
same form tag ?

If you can't find try just the simplest code possible to see if you have the
same problem (basically a loop that renders 10 fields).

Patrice
"Dan Flynn" <df****@standishmellon.com> a écrit dans le message de
news:a2*************************@posting.google.co m...
I am working on a project that requires me to check the number of rows
in a table with the same HTML "ID" value.

I do this in my code with:

i = document.all(rowid).length

However, if the number of rows with the same ID is greater than 8, it
always returns 8 (not 9, 10, etc.)

Also, I am seeing a similiar response in a 2nd page when I attempt to
get the number of elements in the Form collection

i = Request.Form.Count

This also returns a value of 8 although I know there are more elements
in the collection than 8.

Is any one aware of an issue like this? Maybe some kind of setup
issue with IIS?

Please help.

Thanks.
I am hoping this is a

Jul 19 '05 #2
Dan Flynn wrote:
I am working on a project that requires me to check the number of rows
in a table with the same HTML "ID" value.

I do this in my code with:

i = document.all(rowid).length

However, if the number of rows with the same ID is greater than 8, it
always returns 8 (not 9, 10, etc.)
What behavior do you expect from document.all? And why do you think a
browser should tolerate such abuse of the ID attribute? When uniqueness is
the specification, violating it entitles us to little indignation.
Also, I am seeing a similiar response in a 2nd page when I attempt to
get the number of elements in the Form collection

i = Request.Form.Count

This also returns a value of 8 although I know there are more elements
in the collection than 8.
What do you see if you dump Request.Form to the Response stream?

ex: Response.Write(Request.Form)

For that matter, are you depending entirely on the ID attribute, or are your
form elements utilizing NAME? In HTML4, NAME is required for a "successful
control":
http://www.w3.org/TR/html401/interac...ssful-controls
Is any one aware of an issue like this? Maybe some kind of setup
issue with IIS?


I have never seen IIS truncate the Request.Form collection. I can only
assume the browser is not sending anything else.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #3

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

Similar topics

8
by: Hal Vaughan | last post by:
Is there a maximum length for Javascript program lines? What about strings? Is there a limit on string length? I found some references that said the maximum string length was 256 characters,...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
1
by: Jay Douglas | last post by:
I need help getting the collections to show up in the property window of a user control. I want to be able to edit the collection items just like any other asp.net control that has collection...
5
by: Colin Basterfield | last post by:
Hi, I have a custom collection, which is roughly this public class SiteList : CollectionBase { bla bla bla code, bla bla! } This list holds Site object which have two members, SiteName and
5
by: Atley | last post by:
I am trying to set up a nested collection so I can run statements like this: me.lblquestions.text = mysteps.item(1).questions(1).Asked Any ideas on how to do this? I have created a...
3
by: sternr | last post by:
Hey, I'm using in my application a System.Collections.Stack object. Is there a way to define a maximum size for the this stack object, That when the max size is reached, the oldest value is...
4
by: Adam Clauss | last post by:
I ran into a problem a while back when attempting to convert existing .NET 1.1 based code to .NET 2.0 using Generic collections rather than Hashtable, ArrayList, etc. I ran into an issue because...
4
by: Sid Price | last post by:
Hello, I have a class of objects (Device) that are managed by another object (Devices) with a collection class (DeviceCollection) inherited from Collections.Hashtable. Each of the Device objects...
7
by: Curious | last post by:
Hi, I need advice on how to set the maximum property of my progress bar. I read a huge file so I need a progress bar when I read it. However, I don't know how many records are there in the...
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...
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
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
jinu1996
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...
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
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.