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

Request.Form.Count varies by machine?!

I think I must be losing my mind here. I've got the same page running
on two different machines. I do the same form post on both, and on one
machine I get Request.Form.Count=21 and on the other it's 22. ?!?

I have iterated through the form collection and printed out every key
on both machines and compared them carefully. They are identical.

WTF is going on here? I even went so far as to reset IIS on both
machines, and the counts are still different.

Any and all clues appreciated!
Jul 19 '05 #1
1 3793
It's hard to say without seeing your form, but say you have a form like
this:
<form method="post" action="testp.asp">
<input type="text" value="something else" name="txt2">
<input type="image" src="/images/admin.gif">
<input type="submit" value="submit" name="submit">
</form>

If you submit by pressing enter or Ctrl+M, your count will be 1, because the
image input is the default submit, and if it's not clicked, it won't return
in the form collection.

If you submit by clicking the image, you'll get three items, the textbox,
and the cooridnates of your click.

If you submit by clicking submit, you'll get two items, the textbox, and the
submit button.

Ray at work


"Chris Nelder" <ch**********@magnets.com> wrote in message
news:64**************************@posting.google.c om...
I think I must be losing my mind here. I've got the same page running
on two different machines. I do the same form post on both, and on one
machine I get Request.Form.Count=21 and on the other it's 22. ?!?

I have iterated through the form collection and printed out every key
on both machines and compared them carefully. They are identical.

WTF is going on here? I even went so far as to reset IIS on both
machines, and the counts are still different.

Any and all clues appreciated!

Jul 19 '05 #2

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

Similar topics

2
by: Konstantin Mironov | last post by:
Hi! We have web site on IIS 5.0 for sending purchase-orders to database on MS SQL through ASP and ADO. The purchase-order is being sending to .asp script as web request, but the script recieves...
6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
2
by: Harag | last post by:
Hi All Using: JScript IIS 5 I have a problem in the following code: // The next 4 lines display exactly what was typed in the text boxes. out("<br>Request.Form="+...
5
by: Jack | last post by:
Hi, I am trying to get a thorough understanding of a code where a addition or deletion of records can be done from a list of records. For addition part of the form, data is being obtained from set...
4
by: James Johnson | last post by:
Dear C#Dex, I am trying to automate a POST to a web page that clicks a button. I have been able to hit a target web page and run the web page. However, the button on the page does not click. ...
0
by: Kalpesh | last post by:
Hi All, I am using .net crystal reports to develop the reports. The version of crystal report assemblies is 10.2.3600.0. When i run the reports i got following error. #region Retry Report...
9
by: Dave | last post by:
Hi, I've been trawling the web for answer to my problem with no luck although I'm hardly alone it seems! Below is the generated source for an ASP page that posts a value called 'album' to...
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
3
by: Joseph Geretz | last post by:
I'm using the Request Filter documentation which can be found here: http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx In this example, two filters are installed, one...
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
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
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
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
tracyyun
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...
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.