473,790 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Execu te ("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("h dnPlanId")

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,an d SQL Support, all in one place.
Jul 19 '05 #1
9 11302
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.Execu te ("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("h dnPlanId")

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,an d 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.quer ytring ...%>?
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******** *************@n ews.frii.net,
Andrew J Durstewitz <ad*********@mo reheadassociate s.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="hdnPlantI D" 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,an d 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*********@mo reheadassociate s.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,a nd 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,an d 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
2762
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 stuff? In any case, here is the issue in brief: I want to keep the page invisible while my onload script decides how to format it, setting colors, downloads images, etc. The style "visibility:hidden" in the body tag almost does it -- except...
6
3018
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 (miRS.next()) {
0
2512
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), Form2's WndProc method is overriden, if the message is CLOSE message, just hide the form. I first initialize and show the child form, then close it by clicking the Close(X) button, the overriden WndProc method gets invoked, and the form is hidden. Then
4
3628
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 at the network from their computer using control File1. 2. The user clickes the button Commit picture (with id CliBtn) a. The script is running at the client to get the sharename of the file
1
2201
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 be brought back to a minimum. The application suffered from relatively large screens. A typical aspx page was 500 Kbyte so page load times were in the order of 40 - 50 seconds. After unsufficient loading improvement using .net caching
4
2569
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 on the server postback. These text fields "always" have data in them. About 5 months ago we started to receive intermitent errors that reveals at postback the value in the text field's value is gone. I am wondering if there hasn't been an...
12
11464
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 field, it launches a custom event handler to process the existing value in that text field. Well after the onBlur function has completed, the cursor looks like it's not there, almost as if it didn't set focus to the text field you were currently on. ...
2
1829
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 the code in the Page Init to without any results. Could someone please assist? Code Snippet: <input id="hdnTextBoxData" name = "hdnTextBoxData" type="hidden"
5
3054
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 temporary conversion folder. Then it converts it to the desired file format and copies the file to the output folder specified. Then it deletes the converted file from the temporary conversion folder. Then it attempts to delete the copied input file...
0
10413
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 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...
1
10145
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,...
0
9986
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
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 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...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
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...

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.