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

Request.QueryString() and/or Request.Form()

VS.NET 2002/VB

Is it possible to retrieve HTML form variables that are hidden input types using
Request.QueryString() and/or Request.Form()?

I have tried various ways of using those, but to no avail. My HTML form method is set to POST, and I
thought I had read somewhere that this could be done.

If it is not possible, is there any way to retrieve HTML form variables into my .aspx page?

Thanks,
George

Nov 18 '05 #1
2 2575
Request.QueryString is only for parameters passed in the URL.

Request.Form works very nicely for retrieving posted hidden controls.

"George" <------@----.---> wrote in message
news:QC*******************@bgtnsc05-news.ops.worldnet.att.net...
VS.NET 2002/VB

Is it possible to retrieve HTML form variables that are hidden input types using Request.QueryString() and/or Request.Form()?

I have tried various ways of using those, but to no avail. My HTML form method is set to POST, and I thought I had read somewhere that this could be done.

If it is not possible, is there any way to retrieve HTML form variables into my .aspx page?
Thanks,
George

Nov 18 '05 #2
Marina,

Actually, I didn't really explain my problem very well.

I have an .htm page that uses an HTML form button to open my .aspx page in a new window without any
buttons on it. That may be why I can't retrieve my hidden inputs in the HTML form, because, even
though the method is set to POST, the action is set to call a javascript function that uses
window.open() to open my .aspx page in the new window, instead of the action being set to call the
..aspx page directly.

I am not certain, but is it possible to retrieve those hidden inputs like that? If not, is there
anyway of doing it?

Thanks,
George
"Marina" <so*****@nospam.com> wrote in message news:eR**************@TK2MSFTNGP09.phx.gbl...
Request.QueryString is only for parameters passed in the URL.

Request.Form works very nicely for retrieving posted hidden controls.

"George" <------@----.---> wrote in message
news:QC*******************@bgtnsc05-news.ops.worldnet.att.net...
VS.NET 2002/VB

Is it possible to retrieve HTML form variables that are hidden input types

using
Request.QueryString() and/or Request.Form()?

I have tried various ways of using those, but to no avail. My HTML form

method is set to POST, and I
thought I had read somewhere that this could be done.

If it is not possible, is there any way to retrieve HTML form variables

into my .aspx page?

Thanks,
George


Nov 18 '05 #3

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

Similar topics

6
by: michaaal | last post by:
What is the difference between these two statements? They seem to do the same thing... response.write(request("variable")) response.write(request.querystring("variable"))
2
by: John Davis | last post by:
I want to know what's the differences between Request.Form("Field Name") and Request.QueryString("Field Name") OR they function exactly the same, which is to return the value of the field?? ...
1
by: Matt | last post by:
If we use GET protocol, we can use either Request("controlname") or Request.QueryString("controlname") to get the data entered by the user. But if we use POST protocol, we MUST use...
5
by: momo | last post by:
Hello Newsgroup, I want to pass a Request.Form variable to an ASP form, through the url for example lets say i have a form with a textfiled called "txtName" if i click the submit button for...
5
by: Ivan | last post by:
hi, I saw some program using "request("fieldname") " instead of "request.QueryString" to get the value from URL, what's the different ?? thanks
0
by: Anders Borum | last post by:
Hello! I would like to request a new method on the XsltArgumentList class, allowing developers to check the presense of a key/value pair. If you try to add a key/value pair that has already been...
7
by: eric.goforth | last post by:
Hello, I'm working with a classic asp page that calls another classic asp page. The html in my calling page looks like: <form method="post"...
5
by: =?Utf-8?B?QVRT?= | last post by:
PRB JavaScript in ASP with Request.Form Please help, I'm having a problem with JavaScript in ASP, where the ASP page crashes when I try to determine if data was posted from a FORM or through a...
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string...
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: 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
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
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
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
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.