473,386 Members | 1,817 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,386 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 2569
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...

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.