473,804 Members | 3,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Request.QuerySt ring() and/or Request.Form()

VS.NET 2002/VB

Is it possible to retrieve HTML form variables that are hidden input types using
Request.QuerySt ring() 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 2631
Request.QuerySt ring is only for parameters passed in the URL.

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

"George" <------@----.---> wrote in message
news:QC******** ***********@bgt nsc05-news.ops.worldn et.att.net...
VS.NET 2002/VB

Is it possible to retrieve HTML form variables that are hidden input types using Request.QuerySt ring() 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******** ******@TK2MSFTN GP09.phx.gbl...
Request.QuerySt ring is only for parameters passed in the URL.

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

"George" <------@----.---> wrote in message
news:QC******** ***********@bgt nsc05-news.ops.worldn et.att.net...
VS.NET 2002/VB

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

using
Request.QuerySt ring() 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
11822
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
17773
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?? Thanks, John
1
2516
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 Request("controlname"), and Request.QueryString("controlname") won't work. I think Request("controlname") means Request.Form("controlname"), which is used for POST protocol. But seems like it works for GET protocol too. Here's the code I tested. <%
5
2581
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 example the asp page reads the content of this txtName as Request.Form("txtName") I want to achieve that the asp form is accessed through a URL where i can pass the value of txtName without going to the page of the form and clicking
5
2427
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
3106
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 defined in the list, an exception is thrown. Rather than using the "GetParam" method, it would be usefull to have a method called ".Exists" available on the XsltArgumentList. I think this allows for cleaner and more readable code. Or, perhaps...
7
1929
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" action="/includes/mypage2.asp?subtype=MyType&amp;ecd=1&amp;eid=97702"> ....Do some stuff
5
5909
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 QueryString. Where, if the data came through via a FORM, I want to use it 1st, but if not, to then try using it from the QueryString. Basically, the problem boils down to using "toString()" on Request.Form("NAME") and Request.QueryString("NAME")...
7
9663
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 operation on parameters not passed. Example: Make a TST.asp and post to it as TST.asp?STATE=TEST <%@ Language=JavaScript %> <%
0
9589
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
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
10329
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
10085
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...
1
7626
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
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3000
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.