473,320 Members | 1,600 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,320 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 2560
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.