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(ro wid).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.Co unt
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 2 3296
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****@standis hmellon.com> a écrit dans le message de
news:a2******** *************** **@posting.goog le.com... 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(ro wid).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.Co unt
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
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(ro wid).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.Co unt
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, but I have a program that created a string of over 25,000
characters (the browser was Konqueror).
Are there limits on these lengths? If I require a newer browser for the
program I'm writing, would that change the situation?
|
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.
|
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 properties (i.e. The ASP:Table
control). This is for a menu system. The collections are working when the
classes are called directly, but not as a user control. Any advice is
appreciated.
Code:
------
|
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
|
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 Class(Steps) with a nested
Class(Questions) inside of it and a Collection of that Class(Steps) and it
works fine, but the Nested Collection(Questions) is escaping me.
Help!
| |
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 deleted?
Thanks ahead
--sternr
|
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 the old code allowed me to do what basically was
the following assignment:
class SomeClass
{
private Queue q;
SomeClass(Queue q)
|
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 can raise an event and I
need the managing class (Devices) to be able to catch these events.
Public Class Device
Public Event StatusChange()
|
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 file until I finish
reading it.
Anyone can advise me on how to set accurate maximum?
|
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: 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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |