473,394 Members | 1,699 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,394 software developers and data experts.

ASP / Hidden text box issue

Hi!

I am having a really strange issue. I have a few users calling in
saying they are getting an error. On further review I found this line is
what is causing it...

Set strLookup = cnAddStep.Execute ("SELECT * FROM ActionSteps WHERE
planId = '" & intPlanId & "' ORDER BY stepId DESC")

The exact peice causing it is intPlanId. For some reason the form
request isn't getting the ID.

intPlanId = Request.Form("hdnPlanId")

intPlanId is populated from a hidden text box in the previous page. But
only on a very few users machines will the post not occure. Any ideas?

Thanks,
Andrew J Durstewitz

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #1
9 11286
Andrew Durstewitz wrote:
Hi!

I am having a really strange issue. I have a few users calling in
saying they are getting an error. On further review I found this line
is what is causing it...

Set strLookup = cnAddStep.Execute ("SELECT * FROM ActionSteps WHERE
planId = '" & intPlanId & "' ORDER BY stepId DESC")
This must be difficult to debug. Set your sql statements to a variable so
you can use response.write to verify what they contain.
The exact peice causing it is intPlanId. For some reason the form
request isn't getting the ID.

intPlanId = Request.Form("hdnPlanId")

intPlanId is populated from a hidden text box in the previous page.
But only on a very few users machines will the post not occure.
? If the post did not occur, how could this asp code be executing?
Any ideas?

Are you using client-side code to put the value into the hidden textbox? If
so, does the client machine have scripting turned off?

Do any of the Form variables have values? Is it only this one that has no
value? If so, I would blame the client-side code.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2
Bob,
Set your sql statements to a variable so
you can use response.write to verify what they >contain.
I have done this, for most users they get the ID, but for a VERY few
they don't get anything.
? If the post did not occur, how could this asp >code be executing?


What I meant was that they are posting the page but the value of the
hidden form item isn't getting there.

The hidden form is being populated from the QueryString value passed to
it.

What I am starting to think is that the user has some sort of security
turned on that doesn't allow them to submit hidden data? Is that
possible?

The user is using IE 5.5.0

Thanks,
Andrew J Durstewitz

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #3
"Andrew J Durstewitz" wrote ...
What I am starting to think is that the user has some sort of security
turned on that doesn't allow them to submit hidden data? Is that
possible?


Not as far as I am aware - although that would be fun to have to code
around!

Best practice here would probably be to just view the source of the page
that has the form on it for one of the users.

This way you can see if the value is there or not in the hidden element. If
the hidden element doesn't have a value then its not retrieving the data
correctly in the first place (or you have records without these Id's etc)..

I'm betting that the form is sending the info correctly, and your next page
is processing it correctly, its just the values not getting to the form in
the first place...

Have a looky!

Regards

Rob
Jul 19 '05 #4
Andrew J Durstewitz wrote:
Bob,

The hidden form is being populated from the QueryString value passed
to it.
Using client-side code? Or a direct <%=request.querytring ...%>?
What I am starting to think is that the user has some sort of security
turned on that doesn't allow them to submit hidden data? Is that
possible?

I've never heard of anything like this. Do you have any validation code to
ensure that this textbox has been populated before the form is submitted?

Is the problem intermittent, or does it always occur on a particular user's
machine?

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #5
In news:3f*********************@news.frii.net,
Andrew J Durstewitz <ad*********@moreheadassociates.com> typed:
: Bob,
:
:: Set your sql statements to a variable so
:: you can use response.write to verify what they >contain.
:
: I have done this, for most users they get the ID, but for a VERY few
: they don't get anything.
:: ? If the post did not occur, how could this asp >code be executing?
:
: What I meant was that they are posting the page but the value of the
: hidden form item isn't getting there.
:
: The hidden form is being populated from the QueryString value passed
: to it.

The querystring could be the culprit. Check to make sure the hidden input is
being properly sent from the querystring.
i.e <input type="hidden" name="hdnPlantID" value="">
: What I am starting to think is that the user has some sort of security
: turned on that doesn't allow them to submit hidden data? Is that
: possible?

Umm...no, at least not form fields
Don

Jul 19 '05 #6
"Andrew J Durstewitz" wrote:

The hidden form is being populated from the QueryString
value passed to it.
Change the type to "text" and find out.

What I am starting to think is that the user has some sort
of security turned on that doesn't allow them to submit
hidden data? Is that possible?

The user is using IE 5.5.0


I'm unaware of any version of IE that disallows hidden inputs. Any chance
the input sits outside the <form> tags?
--
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 #7
Ok, I think I figured out the problem. I had the user attempt this on a
co-workers machine within the same organization. It worked.

It really sounds like to me that IE isn't running right for the user.

I have validated the data for the user. They are getting the data to
the page that has the hidden form but on post it losses it.

After a re-install of IE (maybe upgrade to IE6) hopefully this issue
will go away.

Thanks everyone,
Andrew

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #8
A hidden form field is often used to hold a value that is chosen from
some other source on the page. Is it possible that you are using
Javascript to populate the hidden field, and they have Javascript
turned off?
On 30 Oct 2003 22:09:42 GMT, Andrew J Durstewitz
<ad*********@moreheadassociates.com> wrote:
Ok, I think I figured out the problem. I had the user attempt this on a
co-workers machine within the same organization. It worked.

It really sounds like to me that IE isn't running right for the user.

I have validated the data for the user. They are getting the data to
the page that has the hidden form but on post it losses it.

After a re-install of IE (maybe upgrade to IE6) hopefully this issue
will go away.

Thanks everyone,
Andrew

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.


Jul 19 '05 #9
I'm not using a javascript to populate the feild. I am doing a
response.write into the feild it's self.

Also, keep in mind that it WORKS for 99% of users. It's just a few who
where having this problem.

Thanks,
Andrew J Durstewitz

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #10

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

Similar topics

7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
6
by: Omar | last post by:
Hi, In a JSP I have the next: .... codigo = "<select name='" + nombre + "'>\n<option selected value='default'>Escoge</option><option value='todos'>Todos</option>"; if (miRS != null) while...
0
by: sshuangw | last post by:
Hello: I am encountering a very weird issue with MDI child, Overriden WndProc function and hidden form. Basically, the application has two forms, Form1(parent form), Form2(Child form),...
4
by: Magnus Blomberg | last post by:
Hello! I have a problem when using a hidden field to send a value to the server. Below you can see my code in simplyfied versions. What I'm trying to do is: 1. The user browses for a picture...
1
by: Wim | last post by:
Hi Everyone, I'm trying to speed up a Asp.net 1.1 applications' performance. The application needs to run in an environment with little bandwith and therefore pagesizes and roundtrip times shoud...
4
by: =?Utf-8?B?UGF1bCBSZWVk?= | last post by:
Greetings. I have an app that's been in production for 3-4 years that is hosted at an ISP. I have an aspx control on the page that uses a few hidden text fields for repositioning logic executed...
12
by: Sculder | last post by:
Hello, I'm running into an interesting issue and I wanted to verify it was a bug with Internet Explorer 7. I have a field that has an javascript onBlur event. When you set focus to the text...
2
by: =?Utf-8?B?TWFubnk=?= | last post by:
Hello Folks, I am having an issue with retrieving value of hidden field in the codebehind. The value of the control is set using Javascript defined in the Page Load Event. I have tried putting...
5
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a .Net web service that converts the MODCA files to tif or png file format. This web service runs on a 2003 server. This web service first copies the MODCA file to be converted to a...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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,...

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.